diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-04-29 10:11:55 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2014-05-22 01:02:22 +0200 |
commit | 2f89b072c9f845e8be746dcd9b14b7043c4f9a65 (patch) | |
tree | f8c5ea9c735af9377f4d6ef70e92950f895f4443 /drivers/hwmon | |
parent | hwmon: (max197) remove unnecessary OOM messages (diff) | |
download | linux-2f89b072c9f845e8be746dcd9b14b7043c4f9a65.tar.xz linux-2f89b072c9f845e8be746dcd9b14b7043c4f9a65.zip |
hwmon: (pc87427) 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')
-rw-r--r-- | drivers/hwmon/pc87427.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/hwmon/pc87427.c b/drivers/hwmon/pc87427.c index d847e0a084e0..9e4684e747ea 100644 --- a/drivers/hwmon/pc87427.c +++ b/drivers/hwmon/pc87427.c @@ -1081,10 +1081,8 @@ static int pc87427_probe(struct platform_device *pdev) data = devm_kzalloc(&pdev->dev, sizeof(struct pc87427_data), GFP_KERNEL); - if (!data) { - pr_err("Out of memory\n"); + if (!data) return -ENOMEM; - } data->address[0] = sio_data->address[0]; data->address[1] = sio_data->address[1]; |