Skip to content

Commit

Permalink
iio: in2xx-adc: Remove unnecessary cast
Browse files Browse the repository at this point in the history
`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>
  • Loading branch information
Lars-Peter Clausen authored and Jonathan Cameron committed Dec 16, 2021
1 parent 91b49aa commit 52c65f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iio/adc/ina2xx-adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 52c65f5

Please sign in to comment.