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:
f90dff4
)
mfd: aat2870-core: Remove unnecessary 'out of memory' message
author
Lee Jones
<lee.jones@linaro.org>
Tue, 27 Oct 2015 16:14:06 +0000
(16:14 +0000)
committer
Lee Jones
<lee.jones@linaro.org>
Thu, 14 Jan 2016 08:43:52 +0000
(08:43 +0000)
WARNING: Possible unnecessary 'out of memory' message
+ if (!aat2870) {
+ dev_err(&client->dev,
total: 0 errors, 1 warnings, 524 lines checked
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/aat2870-core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mfd/aat2870-core.c
b/drivers/mfd/aat2870-core.c
index 29b6a2d4ac724f0ed2c47f91c5013305ac448dd3..3ba19a45f199abb0a69b92d8332f73f57182f4f6 100644
(file)
--- a/
drivers/mfd/aat2870-core.c
+++ b/
drivers/mfd/aat2870-core.c
@@
-373,11
+373,8
@@
static int aat2870_i2c_probe(struct i2c_client *client,
aat2870 = devm_kzalloc(&client->dev, sizeof(struct aat2870_data),
GFP_KERNEL);
- if (!aat2870) {
- dev_err(&client->dev,
- "Failed to allocate memory for aat2870\n");
+ if (!aat2870)
return -ENOMEM;
- }
aat2870->dev = &client->dev;
dev_set_drvdata(aat2870->dev, aat2870);