diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2015-07-15 09:08:24 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-16 23:10:32 +0200 |
commit | afa700729646761f58cc068d86a37e09a70e4cf6 (patch) | |
tree | 2425ff518b37913f9555b8f4801f51e0fb6706cc /sound | |
parent | ASoC: rsrc-card: use snd_soc_of_parse_audio_route/prefix for routing (diff) | |
download | linux-afa700729646761f58cc068d86a37e09a70e4cf6.tar.xz linux-afa700729646761f58cc068d86a37e09a70e4cf6.zip |
ASoC: rsnd: remove unnecessary 'out of memory' message from SSI
Current checkpatch.pl indicates 'out of memory' message is unnecessary.
Let's remove it
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Keita Kobayashi <keita.kobayashi.ym@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/sh/rcar/ssi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/sh/rcar/ssi.c b/sound/soc/sh/rcar/ssi.c index 2fbe59f7f9b5..d45b9a7e324e 100644 --- a/sound/soc/sh/rcar/ssi.c +++ b/sound/soc/sh/rcar/ssi.c @@ -770,10 +770,8 @@ int rsnd_ssi_probe(struct platform_device *pdev, */ nr = info->ssi_info_nr; ssi = devm_kzalloc(dev, sizeof(*ssi) * nr, GFP_KERNEL); - if (!ssi) { - dev_err(dev, "SSI allocate failed\n"); + if (!ssi) return -ENOMEM; - } priv->ssi = ssi; priv->ssi_nr = nr; |