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:
b1117f5
)
ASoC: tpa6130a2: Remove redundant OOM message
author
Sachin Kamat
<sachin.kamat@samsung.com>
Fri, 20 Jun 2014 09:59:02 +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/tpa6130a2.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/tpa6130a2.c
b/sound/soc/codecs/tpa6130a2.c
index 8fc5a647453b61c8c7636db58dcd9c182d818a60..6fac9e034c483861dc82b3e0468b9bbb362f562d 100644
(file)
--- a/
sound/soc/codecs/tpa6130a2.c
+++ b/
sound/soc/codecs/tpa6130a2.c
@@
-381,10
+381,8
@@
static int tpa6130a2_probe(struct i2c_client *client,
dev = &client->dev;
data = devm_kzalloc(&client->dev, sizeof(*data), GFP_KERNEL);
- if (data == NULL) {
- dev_err(dev, "Can not allocate memory\n");
+ if (!data)
return -ENOMEM;
- }
if (pdata) {
data->power_gpio = pdata->power_gpio;