diff options
author | Peter Senna Tschudin <peter.senna@gmail.com> | 2014-05-31 10:14:05 -0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-07-25 17:16:55 -0400 |
commit | 0e772b33a14a5fd27f1efce6855682323df9f9b8 (patch) | |
tree | 5ae69711d038b783a65289bc77cc927d9f89d293 /drivers/bluetooth | |
parent | 03a6c3ff3282ee9fa893089304d951e0be93a144 (diff) |
bfa: 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>
Acked-by: Sudarsana Kalluru <Sudarsana.Kalluru@qlogic.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/bluetooth')
0 files changed, 0 insertions, 0 deletions