Skip to contentSkip to conversation

mfd: max14577: cleanup an error message

PATCH In review Dan Carpenter 2 participants 2 messages Dec 4, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mfd: max14577: cleanup an error message

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

drivers/mfd/max14577.c +1 -2
index 1337c4527028..a5e1c370c609 100644
@@ -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;
 	}
 
#1 lore raw
Quoted 3 lines

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

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