Skip to content

Commit 5143530

Browse files
andy-shevBartosz Golaszewski
authored andcommitted
gpio: pcf857x: Drop unneeded explicit casting
The s32 is compatible with int, no need to cast. Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent e2d1812 commit 5143530

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio-pcf857x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ static int i2c_write_le8(struct i2c_client *client, unsigned int data)
8888

8989
static int i2c_read_le8(struct i2c_client *client)
9090
{
91-
return (int)i2c_smbus_read_byte(client);
91+
return i2c_smbus_read_byte(client);
9292
}
9393

9494
/* Talk to 16-bit I/O expander */

0 commit comments

Comments
 (0)