]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/hwmon/max6650.c
hwmon: (max6650) Drop error message after memory allocation failures
[mirror_ubuntu-bionic-kernel.git] / drivers / hwmon / max6650.c
index badff94edef8a2a1af694f2fb408fbe4490acd28..74916e777264eb625ac175f35bd59dcf54ef7bb5 100644 (file)
@@ -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);