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: da9210: Remove redundant error message
author
Sachin Kamat
<sachin.kamat@linaro.org>
Thu, 20 Feb 2014 08:53:02 +0000
(14:23 +0530)
committer
Mark Brown
<broonie@linaro.org>
Thu, 20 Feb 2014 10:58:46 +0000
(19:58 +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/da9210-regulator.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/da9210-regulator.c
b/drivers/regulator/da9210-regulator.c
index 6f5ecbe1132e7da4f02496672578ef2301285767..7a320dd11c46220bfff3869510f1abcd7903ae2d 100644
(file)
--- a/
drivers/regulator/da9210-regulator.c
+++ b/
drivers/regulator/da9210-regulator.c
@@
-134,11
+134,8
@@
static int da9210_i2c_probe(struct i2c_client *i2c,
int error;
chip = devm_kzalloc(&i2c->dev, sizeof(struct da9210), GFP_KERNEL);
- if (NULL == chip) {
- dev_err(&i2c->dev,
- "Cannot kzalloc memory for regulator structure\n");
+ if (!chip)
return -ENOMEM;
- }
chip->regmap = devm_regmap_init_i2c(i2c, &da9210_regmap_config);
if (IS_ERR(chip->regmap)) {