Skip to content

Commit

Permalink
hwmon: (lm93) remove unnecessary OOM messages
Browse files Browse the repository at this point in the history
The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
  • Loading branch information
Jingoo Han authored and Guenter Roeck committed May 21, 2014
1 parent 6d33d30 commit 567817d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/hwmon/lm93.c
Original file line number Diff line number Diff line change
Expand Up @@ -2747,10 +2747,8 @@ static int lm93_probe(struct i2c_client *client,
}

data = devm_kzalloc(&client->dev, sizeof(struct lm93_data), GFP_KERNEL);
if (!data) {
dev_dbg(&client->dev, "out of memory!\n");
if (!data)
return -ENOMEM;
}
i2c_set_clientdata(client, data);

/* housekeeping */
Expand Down

0 comments on commit 567817d

Please sign in to comment.