summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2021-12-09 17:17:29 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-12-16 16:34:54 +0000
commit52c65f5b095782abb1accbacfe6f6962a583fe05 (patch)
tree101badfb27bd4229fde8bca2701d8abf7f6b791a /drivers/iio
parent91b49aadbabf6860a8dae45df7aa982ca058b203 (diff)
downloadlinux-52c65f5b095782abb1accbacfe6f6962a583fe05.tar.gz
linux-52c65f5b095782abb1accbacfe6f6962a583fe05.tar.bz2
linux-52c65f5b095782abb1accbacfe6f6962a583fe05.zip
iio: in2xx-adc: Remove unnecessary cast
`buf` is cast to a const char *, but `buf` is already a const char *, so the case is unnecessary. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/adc/ina2xx-adc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/ina2xx-adc.c b/drivers/iio/adc/ina2xx-adc.c
index 352f27657238..08f243f5b92b 100644
--- a/drivers/iio/adc/ina2xx-adc.c
+++ b/drivers/iio/adc/ina2xx-adc.c
@@ -550,7 +550,7 @@ static ssize_t ina2xx_allow_async_readout_store(struct device *dev,
bool val;
int ret;
- ret = strtobool((const char *) buf, &val);
+ ret = strtobool(buf, &val);
if (ret)
return ret;