]> git.baikalelectronics.ru Git - kernel.git/commit
iio: st_sensors: Drop unneeded casting when print error code
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 13 Mar 2020 10:49:51 +0000 (12:49 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 21 Mar 2020 10:26:32 +0000 (10:26 +0000)
commit5256727e0b27e16b1eabbccbad8d13a5716bc0d4
tree044ae0d22a923c628b693eb53f90d5a42f72c76b
parentca727d504884ab0c66a8596bf05221f1a2ae4e99
iio: st_sensors: Drop unneeded casting when print error code

Explicit casting in printf() usually shows that something is not okay.
Here, we really don't need it by providing correct specifier.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/common/st_sensors/st_sensors_i2c.c
drivers/iio/common/st_sensors/st_sensors_spi.c