summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/lm93.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-04-29 17:09:19 +0900
committerGuenter Roeck <linux@roeck-us.net>2014-05-21 16:02:22 -0700
commit567817de8574dba2e78b4fe849c1261c70a10245 (patch)
tree90a9c9102336bcd5eefa775e2f8292b2f3aea52b /drivers/hwmon/lm93.c
parent6d33d304e24ba42886583ed5228083162554305f (diff)
downloadop-kernel-dev-567817de8574dba2e78b4fe849c1261c70a10245.zip
op-kernel-dev-567817de8574dba2e78b4fe849c1261c70a10245.tar.gz
hwmon: (lm93) remove unnecessary OOM messages
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>
Diffstat (limited to 'drivers/hwmon/lm93.c')
-rw-r--r--drivers/hwmon/lm93.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/hwmon/lm93.c b/drivers/hwmon/lm93.c
index adf2316..6c2df57 100644
--- a/drivers/hwmon/lm93.c
+++ b/drivers/hwmon/lm93.c
@@ -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 */
OpenPOWER on IntegriCloud