linux-stable/drivers/staging/ft1000
Peter Senna Tschudin add6452615 staging: ft1000: Remove useless return variables
This patch remove variables that are initialized with a constant,
are never updated, and are only used as parameter of return.
Return the constant instead of using a variable.

Verified by compilation only.

The coccinelle script that find and fixes this issue is:
// <smpl>
@@
type T;
constant C;
identifier ret;
@@
- T ret = C;
... when != ret
- return ret;
+ return C;
// </smpl>

Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-24 02:14:31 +09:00
..
ft1000-pcmcia staging: ft1000: Convert printk to dev_err in ft1000_cs.c 2014-05-24 02:11:48 +09:00
ft1000-usb staging: ft1000: Remove useless return variables 2014-05-24 02:14:31 +09:00
Kconfig
Makefile
TODO
ft1000.h drivers: staging: ft1000: Fix lines over 80 characters 2014-05-15 13:51:40 -07:00