projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91b49aa
)
iio: in2xx-adc: Remove unnecessary cast
author
Lars-Peter Clausen
<lars@metafoo.de>
Thu, 9 Dec 2021 16:17:29 +0000
(17:17 +0100)
committer
Jonathan Cameron
<Jonathan.Cameron@huawei.com>
Thu, 16 Dec 2021 16:34:54 +0000
(16:34 +0000)
`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>
drivers/iio/adc/ina2xx-adc.c
patch
|
blob
|
history
diff --git
a/drivers/iio/adc/ina2xx-adc.c
b/drivers/iio/adc/ina2xx-adc.c
index 352f276572384898a4f68bcaee3d8a308c74c5ff..08f243f5b92bf9469f21ebb8b24085ebb4205a28 100644
(file)
--- 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;