Skip to content

Commit

Permalink
iio: as3935: 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 <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
  • Loading branch information
larsclausen authored and jic23 committed Dec 16, 2021
1 parent 3511989 commit 91b49aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iio/proximity/as3935.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static ssize_t as3935_sensor_sensitivity_store(struct device *dev,
unsigned long val;
int ret;

ret = kstrtoul((const char *) buf, 10, &val);
ret = kstrtoul(buf, 10, &val);
if (ret)
return -EINVAL;

Expand Down

0 comments on commit 91b49aa

Please sign in to comment.