Skip to content

Commit aab5dc6

Browse files
Dan CarpenterLee Jones
authored andcommitted
mfd: max14577: Cleanup an error message
"pdata" is a NULL not an ERR_PTR so there is no use printing it. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
1 parent b9736a1 commit aab5dc6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/mfd/max14577.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ static int max14577_i2c_probe(struct i2c_client *i2c,
9696
}
9797

9898
if (!pdata) {
99-
dev_err(&i2c->dev, "No platform data found: %ld\n",
100-
PTR_ERR(pdata));
99+
dev_err(&i2c->dev, "No platform data found.\n");
101100
return -EINVAL;
102101
}
103102

0 commit comments

Comments
 (0)