diff options
author | Peter Senna Tschudin <peter.senna@gmail.com> | 2014-05-31 15:14:05 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-07-25 23:16:55 +0200 |
commit | 0e772b33a14a5fd27f1efce6855682323df9f9b8 (patch) | |
tree | 5ae69711d038b783a65289bc77cc927d9f89d293 /scripts/package | |
parent | bfa: Fix undefined bit shift on big-endian architectures with 32-bit DMA address (diff) | |
download | linux-0e772b33a14a5fd27f1efce6855682323df9f9b8.tar.xz linux-0e772b33a14a5fd27f1efce6855682323df9f9b8.zip |
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 'scripts/package')
0 files changed, 0 insertions, 0 deletions