linux/drivers/staging/kpc2000
Wambui Karuga c0981afd8c staging: kpc2000: Remove unnecessary return variable
Remove unnecessary variable `val` in kp_spi_read_reg() that only holds
the return value from readq().
Issue found by coccinelle using the script:

@@
local idexpression ret;
expression e;
@@

-ret =
+return
     e;
-return ret;

Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Link: https://lore.kernel.org/r/20191009170703.GA2869@wambui
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-10-10 10:44:50 +02:00
..
kpc2000 staging: kpc2000: Fix long constant sparse warning 2019-09-03 09:39:48 +02:00
kpc_dma staging: kpc2000: Fix long constant sparse warning 2019-09-03 09:39:48 +02:00
Kconfig Merge 5.2-rc3 into staging-next 2019-06-03 07:27:16 +02:00
kpc2000_i2c.c staging: kpc2000: kpc2000_i2c: Fix different address spaces warnings 2019-08-21 05:48:06 -07:00
kpc2000_spi.c staging: kpc2000: Remove unnecessary return variable 2019-10-10 10:44:50 +02:00
kpc.h
Makefile staging: kpc2000: move the i2c driver out of its subdirectory 2019-05-21 08:14:18 +02:00
TODO staging: kpc2000: removed DMA AIO implementation. 2019-06-13 11:39:30 +02:00