mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
hwmon: (max6650) Drop error message after memory allocation failures
The core code already generates an error message. Reviewed-by: Jean Delvare <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
This commit is contained in:
parent
17eaa25c3e
commit
0b5e33b632
1 changed files with 1 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue