]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
iio: imu: st_lsm6dsx: Remove unnecessary cast on void pointer
authorsimran singhal <singhalsimran0@gmail.com>
Sat, 1 Apr 2017 14:16:24 +0000 (19:46 +0530)
committerJonathan Cameron <jic23@kernel.org>
Sun, 2 Apr 2017 08:51:45 +0000 (09:51 +0100)
commit407e0b537eadc9f5e98da74b746ce84f42b89cd7
tree4f8f38e5dcf6052922f8c9ff7439896235bcd3cf
parent7ae6df68d68ed1d68d6bac11edc332da67108d8f
iio: imu: st_lsm6dsx: Remove unnecessary cast on void pointer

The following Coccinelle script was used to detect this:
@r@
expression x;
void* e;
type T;
identifier f;
@@
(
  *((T *)e)
|
  ((T *)x)[...]
|
  ((T*)x)->f
|
- (T*)
  e
)

Signed-off-by: simran singhal <singhalsimran0@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c