projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
611d7a7
)
ASoC: wm2000: Remove redundant OOM message
author
Sachin Kamat
<sachin.kamat@samsung.com>
Fri, 20 Jun 2014 09:59:07 +0000
(15:29 +0530)
committer
Mark Brown
<broonie@linaro.org>
Fri, 27 Jun 2014 11:48:23 +0000
(12:48 +0100)
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>
sound/soc/codecs/wm2000.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/wm2000.c
b/sound/soc/codecs/wm2000.c
index a4c352cc3464959bc8be67066ae41fe321e698ab..34ef65c52a7d9425e84a6c9ba475f5cfdb664ea9 100644
(file)
--- 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,
wm2000 = devm_kzalloc(&i2c->dev, sizeof(struct wm2000_priv),
GFP_KERNEL);
- if (wm2000 == NULL) {
- dev_err(&i2c->dev, "Unable to allocate private data\n");
+ if (!wm2000)
return -ENOMEM;
- }
mutex_init(&wm2000->lock);