]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
hwmon: (lm93) remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Tue, 29 Apr 2014 08:09:19 +0000 (17:09 +0900)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 1 May 2014 11:09:19 +0000 (04:09 -0700)
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>
drivers/hwmon/lm93.c

index adf23165a6a709ca2785cad332b8626da2a73b80..6c2df576f2530486d3acde797105ba92d7b17646 100644 (file)
@@ -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 */