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:
10d95ad
)
ASoC: sgtl5000: Remove redundant OOM message
author
Sachin Kamat
<sachin.kamat@samsung.com>
Fri, 20 Jun 2014 09:58:59 +0000
(15:28 +0530)
committer
Mark Brown
<broonie@linaro.org>
Fri, 27 Jun 2014 11:48:21 +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/sgtl5000.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/sgtl5000.c
b/sound/soc/codecs/sgtl5000.c
index 3d39f0b5b4a8afd8352edd95627e1fd690d968d5..249fadbdb42ecd098fcaf7507532b6a5ab8f13f2 100644
(file)
--- a/
sound/soc/codecs/sgtl5000.c
+++ b/
sound/soc/codecs/sgtl5000.c
@@
-843,10
+843,8
@@
static int ldo_regulator_register(struct snd_soc_codec *codec,
ldo = kzalloc(sizeof(struct ldo_regulator), GFP_KERNEL);
- if (!ldo) {
- dev_err(codec->dev, "failed to allocate ldo_regulator\n");
+ if (!ldo)
return -ENOMEM;
- }
ldo->desc.name = kstrdup(dev_name(codec->dev), GFP_KERNEL);
if (!ldo->desc.name) {