diff options
author | Sachin Kamat <sachin.kamat@samsung.com> | 2014-06-20 05:59:07 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-06-27 07:48:23 -0400 |
commit | a0f62118b73483d0e3a980759b5df869e81d4477 (patch) | |
tree | 206f6708ce995f019cfd77b55798e668abe7faac /sound/soc/codecs | |
parent | 611d7a7ba8678dfc2f597e8be6a1a6e4f2bdb8a4 (diff) |
ASoC: wm2000: Remove redundant OOM message
Let memory subsystem handle the error logging.
Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r-- | sound/soc/codecs/wm2000.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm2000.c b/sound/soc/codecs/wm2000.c index a4c352cc3464..34ef65c52a7d 100644 --- a/sound/soc/codecs/wm2000.c +++ b/sound/soc/codecs/wm2000.c | |||
@@ -826,10 +826,8 @@ static int wm2000_i2c_probe(struct i2c_client *i2c, | |||
826 | 826 | ||
827 | wm2000 = devm_kzalloc(&i2c->dev, sizeof(struct wm2000_priv), | 827 | wm2000 = devm_kzalloc(&i2c->dev, sizeof(struct wm2000_priv), |
828 | GFP_KERNEL); | 828 | GFP_KERNEL); |
829 | if (wm2000 == NULL) { | 829 | if (!wm2000) |
830 | dev_err(&i2c->dev, "Unable to allocate private data\n"); | ||
831 | return -ENOMEM; | 830 | return -ENOMEM; |
832 | } | ||
833 | 831 | ||
834 | mutex_init(&wm2000->lock); | 832 | mutex_init(&wm2000->lock); |
835 | 833 | ||