projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38dbfb5
)
regulator: max8973: Remove redundant error message
author
Sachin Kamat
<sachin.kamat@linaro.org>
Tue, 18 Feb 2014 10:41:00 +0000
(16:11 +0530)
committer
Mark Brown
<broonie@linaro.org>
Wed, 19 Feb 2014 13:07:51 +0000
(22:07 +0900)
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/max8973-regulator.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/max8973-regulator.c
b/drivers/regulator/max8973-regulator.c
index 892aa1e5b96c65dc2d879be20b3bb97b290af67a..79f57fef0038057a1da01f1f2ab155ed35b9aa3d 100644
(file)
--- a/
drivers/regulator/max8973-regulator.c
+++ b/
drivers/regulator/max8973-regulator.c
@@
-379,10
+379,8
@@
static int max8973_probe(struct i2c_client *client,
}
max = devm_kzalloc(&client->dev, sizeof(*max), GFP_KERNEL);
- if (!max) {
- dev_err(&client->dev, "Memory allocation for max failed\n");
+ if (!max)
return -ENOMEM;
- }
max->regmap = devm_regmap_init_i2c(client, &max8973_regmap_config);
if (IS_ERR(max->regmap)) {