projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52c65f5
)
iio: vz89x: Remove unnecessary cast
author
Lars-Peter Clausen
<lars@metafoo.de>
Thu, 9 Dec 2021 16:17:30 +0000
(17:17 +0100)
committer
Jonathan Cameron
<Jonathan.Cameron@huawei.com>
Thu, 16 Dec 2021 16:34:54 +0000
(16:34 +0000)
The case to u8 * is unnecessary here since the expression is already of
type u8 *.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/chemical/vz89x.c
patch
|
blob
|
history
diff --git
a/drivers/iio/chemical/vz89x.c
b/drivers/iio/chemical/vz89x.c
index
23b22a5
..
e7e1c74
100644
(file)
--- a/
drivers/iio/chemical/vz89x.c
+++ b/
drivers/iio/chemical/vz89x.c
@@
-242,7
+242,7
@@
static int vz89x_get_resistance_reading(struct vz89x_data *data,
struct iio_chan_spec const *chan,
int *val)
{
- u8 *tmp =
(u8 *)
&data->buffer[chan->address];
+ u8 *tmp = &data->buffer[chan->address];
switch (chan->scan_type.endianness) {
case IIO_LE: