From: Wei Yongjun Date: Mon, 29 Jul 2013 23:51:37 +0000 (+0800) Subject: ASoC: rcar: fix return value check in rsnd_gen1_probe() X-Git-Tag: v3.12-rc1~150^2~9^2~26^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70263cb474853c116f80713d468f3c17d805921c;p=pandora-kernel.git ASoC: rcar: fix return value check in rsnd_gen1_probe() In case of error, the function devm_ioremap_resource() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(), and also remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun Acked-by: Kuninori Morimoto Signed-off-by: Mark Brown --- Reading git-diff-tree failed