Skip to content

Commit

Permalink
hwmon: (max1111) 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 567817d commit 611cd8a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/hwmon/max1111.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,8 @@ static int max1111_probe(struct spi_device *spi)
return err;

data = devm_kzalloc(&spi->dev, sizeof(struct max1111_data), GFP_KERNEL);
if (data == NULL) {
dev_err(&spi->dev, "failed to allocate memory\n");
if (data == NULL)
return -ENOMEM;
}

switch (chip) {
case max1110:
Expand Down

0 comments on commit 611cd8a

Please sign in to comment.