staging: ks7010: Remove unnecessary variable used to store return value
authorsayli karnik <karniksayli1995@gmail.com>
Sun, 18 Sep 2016 20:16:34 +0000 (01:46 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2016 11:56:17 +0000 (13:56 +0200)
commit0525a57b1879370fe0e330708bda3b1c25c937f1
treebbbaa9b6f2be659bea957ad97030fe797351b2a9
parent197cc86e8e0de1f9f4d2a738e73b9acf34bdc347
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>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks_hostif.c