iio: as3935: Remove unnecessary cast
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 9 Dec 2021 16:17:28 +0000 (17:17 +0100)
committerJonathan 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/proximity/as3935.c

index d62766b6b39e89cf3a66bd5aaa7e9737f4d998a5..51f4f92ae84af9cc7bacc92581af806d3034a054 100644 (file)
@@ -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;