Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aab5dc68 authored by Dan Carpenter's avatar Dan Carpenter Committed by Lee Jones
Browse files

mfd: max14577: Cleanup an error message



"pdata" is a NULL not an ERR_PTR so there is no use printing it.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent b9736a16
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;
	}