staging: ks7010: Remove unnecessary variable used to store return value
authorsayli karnik <karniksayli1995@gmail.com>
Wed, 21 Sep 2016 18:17:55 +0000 (23:47 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Sep 2016 09:54:48 +0000 (11:54 +0200)
commit7d359a847cf65cafa3582ee0c52f68e629fe0547
treefbbdd369505a76a7eda84a3162aa01c0122d9497
parentefb35d12b352c0603fe21a2199ba54aa61d22a54
staging: ks7010: Remove unnecessary variable used to store return value

This patch removes an unnecessary variable used to store return values
in order to reduce memory usage.
Done using coccinelle:
@@
type T;
constant C;
identifier ret;
@@
- T ret = C;
... when != ret
return
- ret
+ C
;

Signed-off-by: sayli karnik <karniksayli1995@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks7010_sdio.c