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
..
2014-03-19 09:32:11 -07:00
2014-05-26 10:32:15 -07:00
2014-02-17 00:36:34 -05:00
2014-05-24 07:26:39 +09:00
2013-10-28 14:13:08 -07:00
2012-10-29 17:07:57 -07:00
2014-02-18 11:16:55 -08:00
2012-06-04 21:09:22 -07:00
2013-01-07 10:57:51 -08:00
2013-10-28 14:13:46 -07:00
2014-03-16 18:05:44 -07:00
2014-04-14 08:29:28 -07:00
2012-11-26 16:07:58 -08:00
2012-11-02 11:36:47 -07:00
2014-05-23 20:52:21 +09:00
2014-05-26 10:32:15 -07:00
2012-10-23 20:28:19 -07:00
2014-03-18 11:48:42 -07:00
2012-11-13 12:38:29 -08:00
2014-03-18 11:48:42 -07:00
2012-11-02 11:36:46 -07:00
2010-09-08 21:15:06 -07:00
2013-10-28 14:13:46 -07:00
2014-04-16 20:20:03 -07:00
2014-01-08 15:59:27 -08:00
2013-10-28 14:13:08 -07:00
2014-01-08 15:57:33 -08:00
2010-11-01 09:50:16 -04:00
2013-08-23 10:01:43 -07:00
2013-10-29 17:03:40 -07:00
2013-01-07 10:49:02 -08:00
2014-02-20 14:38:06 +01:00
2013-10-28 14:13:46 -07:00
2013-10-28 14:13:46 -07:00
2013-01-07 10:51:50 -08:00
2013-01-07 10:56:43 -08:00
2010-11-01 09:53:58 -04:00
2013-10-28 14:13:46 -07:00
2014-03-19 13:53:56 -07:00
2013-01-07 10:45:51 -08:00
2013-01-07 10:54:49 -08:00
2014-05-26 10:32:15 -07:00
2013-10-28 14:13:08 -07:00
2013-01-07 10:56:54 -08:00
2013-10-28 14:13:08 -07:00
2014-05-25 11:05:07 -07:00
2010-09-08 21:15:06 -07:00
2012-06-04 21:09:22 -07:00
2013-01-07 10:54:01 -08:00
2010-11-01 14:18:16 -04:00
2014-05-23 20:54:23 +09:00
2014-03-16 22:24:41 -07:00
2013-10-28 14:13:08 -07:00
2013-10-28 14:13:08 -07:00