linux/drivers/staging/sep
Peter Senna Tschudin 4764ca981b drivers/staging: 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
    when strict
return
- ret
+ C
;
// </smpl>

Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-26 10:32:15 -07:00
..
Kconfig staging: sep: fix driver build and kconfig 2013-05-16 15:37:49 -07:00
Makefile
TODO
sep_crypto.c staging: sep: Fix coding style 2014-05-15 15:04:45 -07:00
sep_crypto.h
sep_dev.h staging: sep: Fix coding style 2014-05-15 15:04:45 -07:00
sep_driver_api.h staging "sep" Fix typos found while reading. 2012-06-12 11:14:33 -07:00
sep_driver_config.h staging: sep: Fix typo in printk within sep driver 2013-03-28 16:06:27 -07:00
sep_driver_hw_defs.h
sep_main.c drivers/staging: Remove useless return variables 2014-05-26 10:32:15 -07:00
sep_trace_events.h staging: sep: using strlcpy instead of strncpy 2013-03-11 09:15:32 -07:00