linux_dsm_epyc7002/drivers/media/usb/as102
Julia Lawall bfe40b79e9 [media] as102: fix error return code
Return a negative error code on failure.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
identifier ret; expression e1,e2;
@@
(
if (\(ret < 0\|ret != 0\))
 { ... return ret; }
|
ret = 0
)
... when != ret = e1
    when != &ret
*if(...)
{
  ... when != ret = e2
      when forall
 return ret;
}
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-05-01 07:00:51 -03:00
..
as10x_cmd_cfg.c [media] as102: fix endiannes casts 2014-09-26 06:47:52 -03:00
as10x_cmd_stream.c
as10x_cmd.c [media] as102: fix endiannes casts 2014-09-26 06:47:52 -03:00
as10x_cmd.h [media] as102: fix endiannes casts 2014-09-26 06:47:52 -03:00
as10x_handle.h [media] as102: prepare as102_fe to be compiled as a module 2014-08-21 15:25:30 -05:00
as102_drv.c [media] as102: fix error return code 2015-05-01 07:00:51 -03:00
as102_drv.h [media] as102_drv.h: added a missing newline 2014-09-26 06:47:51 -03:00
as102_fw.c
as102_fw.h
as102_usb_drv.c [media] as102: remove some unneeded checks 2014-09-23 16:13:44 -03:00
as102_usb_drv.h
Kconfig
Makefile [media] as102-fe: make it an independent driver 2014-08-21 15:25:30 -05:00