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:
04cc41a
)
ASoC: wl1273: Remove redundant OOM message
author
Sachin Kamat
<sachin.kamat@samsung.com>
Fri, 20 Jun 2014 09:59:04 +0000
(15:29 +0530)
committer
Mark Brown
<broonie@linaro.org>
Fri, 27 Jun 2014 11:48:22 +0000
(12:48 +0100)
Let memory subsystem handle the error logging.
Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/wl1273.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/wl1273.c
b/sound/soc/codecs/wl1273.c
index 4ead0dc02b87428e15e160032e3b9ef8fab6f925..5d8ba779085b559d0a24c37fcfc6542fadfe5a8b 100644
(file)
--- 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;