Skip to content

Commit 941f667

Browse files
andy-shevjic23
authored andcommitted
iio: light: gp2ap002: Drop unneeded explicit casting
The unnecessary explicit casting is being used. Drop it for good. Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 9e301ea commit 941f667

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/iio/light/gp2ap002.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,7 @@ static int gp2ap002_probe(struct i2c_client *client,
465465

466466
regmap = devm_regmap_init(dev, &gp2ap002_regmap_bus, dev, &config);
467467
if (IS_ERR(regmap)) {
468-
dev_err(dev, "Failed to register i2c regmap %d\n",
469-
(int)PTR_ERR(regmap));
468+
dev_err(dev, "Failed to register i2c regmap %ld\n", PTR_ERR(regmap));
470469
return PTR_ERR(regmap);
471470
}
472471
gp2ap002->map = regmap;

0 commit comments

Comments
 (0)