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 <andriy.shevchenko@linux.intel.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
1 parent e2d1812 commit 5143530

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)