alistair23-linux/drivers/media/usb
Peter Senna Tschudin 4df16f702c [media] drivers/media: 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>
2014-07-04 15:35:27 -03:00
..
au0828 [media] au0828: don't hardcode height/width 2014-06-19 13:36:10 -03:00
b2c2
cpia2
cx231xx [media] drivers/media: Remove useless return variables 2014-07-04 15:35:27 -03:00
dvb-usb [media] technisat-sub2: Fix stream curruption on high bitrate 2014-06-26 09:20:18 -03:00
dvb-usb-v2 [media] lmedm04: rs2000 check if interrupt urb is over due 2014-06-17 12:04:47 -03:00
em28xx [media] em28xx: add MSI Digivox Trio support 2014-07-04 15:34:40 -03:00
gspca [media] gspca_kinect: add support for the depth stream 2014-07-04 14:51:01 -03:00
hdpvr
pvrusb2 [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
pwc [media] vb2: stop_streaming should return void 2014-04-23 10:12:51 -03:00
s2255 [media] s2255drv: fix memory leak s2255_probe() 2014-05-23 12:19:42 -03:00
siano [media] Siano: smsusb - Add a device id for PX-S1UD 2014-03-11 12:12:53 -03:00
stk1160 [media] media: stk1160: Avoid stack-allocated buffer for control URBs 2014-05-24 17:12:11 -03:00
stkwebcam
tlg2300
tm6000 [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
ttusb-budget
ttusb-dec
usbtv [media] usbtv: fix leak at failure path in usbtv_probe() 2014-06-17 12:04:46 -03:00
usbvision [media] drivers/media/usb/usbvision/usbvision-core.c: Remove useless return variables 2014-07-04 15:35:02 -03:00
uvc [media] uvcvideo: Fix clock param realtime setting 2014-05-23 11:27:37 -03:00
zr364xx
Kconfig
Makefile