[alsa-devel] [PATCH 15/27] ASoC: rsnd: non 0 is error on probe
Kuninori Morimoto
kuninori.morimoto.gx at gmail.com
Fri Jan 24 03:40:13 CET 2014
From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
Some xxx_probe() returns not only -Exx, but also PTR_ERR().
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
---
sound/soc/sh/rcar/core.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index ed8611f..4fd5735 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -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;
/*
--
1.7.9.5
More information about the Alsa-devel
mailing list