mfd: max14577: cleanup an error message
Subsystems (3)
PATCH 1/1 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 <[email protected]>
drivers/mfd/max14577.c +1 -2
@@ -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 ; }
Quoted 3 lines
"pdata" is a NULL not an
ERR_PTRso there is no use printing it.Signed-off-by Dan Carpenter <[email protected]>
Applied with the $SUBJECT line correctly capitalised.
Signature · 8 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html