projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17eaa25
)
hwmon: (max6650) Drop error message after memory allocation failures
author
Guenter Roeck
<linux@roeck-us.net>
Wed, 12 Feb 2014 06:40:33 +0000
(22:40 -0800)
committer
Guenter Roeck
<linux@roeck-us.net>
Mon, 3 Mar 2014 16:01:05 +0000
(08:01 -0800)
The core code already generates an error message.
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/max6650.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/max6650.c
b/drivers/hwmon/max6650.c
index badff94edef8a2a1af694f2fb408fbe4490acd28..74916e777264eb625ac175f35bd59dcf54ef7bb5 100644
(file)
--- a/
drivers/hwmon/max6650.c
+++ b/
drivers/hwmon/max6650.c
@@
-656,10
+656,8
@@
static int max6650_probe(struct i2c_client *client,
data = devm_kzalloc(&client->dev, sizeof(struct max6650_data),
GFP_KERNEL);
- if (!data) {
- dev_err(&client->dev, "out of memory.\n");
+ if (!data)
return -ENOMEM;
- }
data->client = client;
mutex_init(&data->update_lock);