diff options
author | Peter Senna Tschudin <peter.senna@gmail.com> | 2014-05-31 13:14:08 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-07-04 18:35:02 (GMT) |
commit | 931387fa941ec0da2f4a6999bec69bc608af311e (patch) | |
tree | 2c2804978aa467feec6f8194c084c5847f506ea0 /drivers/media/pci/ngene/ngene-core.c | |
parent | e22eca78574b52ef8320aacdaa5987ed8bca778d (diff) | |
download | linux-931387fa941ec0da2f4a6999bec69bc608af311e.tar.xz |
[media] drivers/media/usb/usbvision/usbvision-core.c: 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: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/pci/ngene/ngene-core.c')
0 files changed, 0 insertions, 0 deletions