aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/max197.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/max197.c')
-rw-r--r--drivers/hwmon/max197.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/hwmon/max197.c b/drivers/hwmon/max197.c
index 96dccaf919d1..82128ad79a91 100644
--- a/drivers/hwmon/max197.c
+++ b/drivers/hwmon/max197.c
@@ -275,10 +275,8 @@ static int max197_probe(struct platform_device *pdev)
}
data = devm_kzalloc(&pdev->dev, sizeof(struct max197_data), GFP_KERNEL);
- if (!data) {
- dev_err(&pdev->dev, "devm_kzalloc failed\n");
+ if (!data)
return -ENOMEM;
- }
data->pdata = pdata;
mutex_init(&data->lock);