提交 aab5dc68 编写于 作者: D Dan Carpenter 提交者: Lee Jones

mfd: max14577: Cleanup an error message

"pdata" is a NULL not an ERR_PTR so there is no use printing it.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
上级 b9736a16
......@@ -96,8 +96,7 @@ static int max14577_i2c_probe(struct i2c_client *i2c,
}
if (!pdata) {
dev_err(&i2c->dev, "No platform data found: %ld\n",
PTR_ERR(pdata));
dev_err(&i2c->dev, "No platform data found.\n");
return -EINVAL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册