diff options
Diffstat (limited to 'drivers/hwmon/max1111.c')
| -rw-r--r-- | drivers/hwmon/max1111.c | 4 | 
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/hwmon/max1111.c b/drivers/hwmon/max1111.c index eda077de8a9..f67d71ee838 100644 --- a/drivers/hwmon/max1111.c +++ b/drivers/hwmon/max1111.c @@ -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:  | 
