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
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
sep_driver_config.h
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
TODO