Re: [PATCH] iio: humidity: hts221_buffer: Remove unnecessary cast on void pointer

2017-04-02 Thread Jonathan Cameron
On 01/04/17 15:14, simran singhal wrote: > 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

Re: [PATCH] iio: humidity: hts221_buffer: Remove unnecessary cast on void pointer

2017-04-02 Thread Jonathan Cameron
On 01/04/17 15:14, simran singhal wrote: > 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 I made a miinor

[PATCH] iio: humidity: hts221_buffer: Remove unnecessary cast on void pointer

2017-04-01 Thread simran singhal
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 --- drivers/iio/humidity/hts221_buffer.c | 2 +- 1 file changed, 1

[PATCH] iio: humidity: hts221_buffer: Remove unnecessary cast on void pointer

2017-04-01 Thread simran singhal
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 --- drivers/iio/humidity/hts221_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)