diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-01-16 15:47:04 +0300 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-01-30 17:55:30 +0300 |
commit | 51435300df229cab06c3efdd80a303b79278e7a7 (patch) | |
tree | 3140efa611eecc317d12561933113f294dd0d953 /drivers/gpio | |
parent | e2d181211641598103bcc8a06bade63121b9be49 (diff) | |
download | linux-51435300df229cab06c3efdd80a303b79278e7a7.tar.xz |
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>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-pcf857x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-pcf857x.c b/drivers/gpio/gpio-pcf857x.c index 9d34776109db..3de1d3ad7472 100644 --- a/drivers/gpio/gpio-pcf857x.c +++ b/drivers/gpio/gpio-pcf857x.c @@ -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 */ |