staging: kpc2000: Remove unnecessary return variable
authorWambui Karuga <wambui.karugax@gmail.com>
Wed, 9 Oct 2019 17:07:03 +0000 (20:07 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2019 08:44:50 +0000 (10:44 +0200)
commitc0981afd8cd6e7176b4b9fe2186087695463ebde
treee1e279a1b2f620a28c8200fc10aba0d9787cbfb2
parentd49d1c76b96ebf39539e93d5ab7943a01ef70e4f
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>
drivers/staging/kpc2000/kpc2000_spi.c