gpio: pcf857x: Drop unneeded explicit casting
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 16 Jan 2023 12:47:04 +0000 (14:47 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 30 Jan 2023 14:55:30 +0000 (15:55 +0100)
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>
drivers/gpio/gpio-pcf857x.c

index 9d34776109dba8b30e8798e3ae953bd9c50ae9bb..3de1d3ad7472cbd5d3febd4aaf8f706f24d63fdd 100644 (file)
@@ -88,7 +88,7 @@ static int i2c_write_le8(struct i2c_client *client, unsigned int data)
 
 static int i2c_read_le8(struct i2c_client *client)
 {
-       return (int)i2c_smbus_read_byte(client);
+       return i2c_smbus_read_byte(client);
 }
 
 /* Talk to 16-bit I/O expander */