diff options
author | Sachin Kamat <sachin.kamat@samsung.com> | 2014-06-20 11:59:04 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-06-27 13:48:22 +0200 |
commit | ac872d3d72773d1ac8824fa6c04430efc72e2a43 (patch) | |
tree | 663b323a15576894fc4a725ea0443439073ddc80 /sound/soc/codecs/wl1273.c | |
parent | ASoC: twl4030: Remove redundant OOM message (diff) | |
download | linux-ac872d3d72773d1ac8824fa6c04430efc72e2a43.tar.xz linux-ac872d3d72773d1ac8824fa6c04430efc72e2a43.zip |
ASoC: wl1273: Remove redundant OOM message
Let memory subsystem handle the error logging.
Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/wl1273.c')
-rw-r--r-- | sound/soc/codecs/wl1273.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/codecs/wl1273.c b/sound/soc/codecs/wl1273.c index 4ead0dc02b87..5d8ba779085b 100644 --- a/sound/soc/codecs/wl1273.c +++ b/sound/soc/codecs/wl1273.c @@ -461,10 +461,8 @@ static int wl1273_probe(struct snd_soc_codec *codec) } wl1273 = kzalloc(sizeof(struct wl1273_priv), GFP_KERNEL); - if (wl1273 == NULL) { - dev_err(codec->dev, "Cannot allocate memory.\n"); + if (!wl1273) return -ENOMEM; - } wl1273->mode = WL1273_MODE_BT; wl1273->core = *core; |