[alsa-devel] [PATCH 08/16] ASoC: wl1273: Remove redundant OOM message
Sachin Kamat
sachin.kamat at samsung.com
Fri Jun 20 11:59:04 CEST 2014
Let memory subsystem handle the error logging.
Signed-off-by: Sachin Kamat <sachin.kamat at samsung.com>
---
sound/soc/codecs/wl1273.c | 4 +---
1 file changed, 1 insertion(+), 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;
--
1.7.9.5
More information about the Alsa-devel
mailing list