ASoC: rsnd: non 0 is error on probe
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 24 Jan 2014 02:40:13 +0000 (18:40 -0800)
committerMark Brown <broonie@linaro.org>
Mon, 3 Feb 2014 12:41:36 +0000 (12:41 +0000)
Some xxx_probe() returns not only -Exx, but also PTR_ERR().

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/sh/rcar/core.c

index ed8611f9c64f3f39be6e895284fa8e1c3061252b..4fd57351c54ae81b6bd904898b0ae346f98d6add 100644 (file)
@@ -737,23 +737,23 @@ static int rsnd_probe(struct platform_device *pdev)
         *      init each module
         */
        ret = rsnd_gen_probe(pdev, info, priv);
-       if (ret < 0)
+       if (ret)
                return ret;
 
        ret = rsnd_scu_probe(pdev, info, priv);
-       if (ret < 0)
+       if (ret)
                return ret;
 
        ret = rsnd_adg_probe(pdev, info, priv);
-       if (ret < 0)
+       if (ret)
                return ret;
 
        ret = rsnd_ssi_probe(pdev, info, priv);
-       if (ret < 0)
+       if (ret)
                return ret;
 
        ret = rsnd_dai_probe(pdev, info, priv);
-       if (ret < 0)
+       if (ret)
                return ret;
 
        /*