linux-kernel-test/drivers/staging/lirc
Julia Lawall 4d9db977f9 staging: Use available error codes
An error code is stored in a variable, but 0 is returned instead.  Use the
variable instead of 0.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@r@
local idexpression x;
constant C;
@@

if (...) { ...
  x = -C
  ... when != x
(
  return <+...x...+>;
|
  return NULL;
|
  return;
|
* return ...;
)
}
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-08-31 15:05:12 -07:00
..
Kconfig V4L/DVB: STAGING: remove lirc_ene0100 driver 2010-08-08 23:43:00 -03:00
lirc_bt829.c V4L/DVB: staging/lirc: CodingStyle cleanups 2010-08-02 16:43:35 -03:00
lirc_ene0100.h
lirc_i2c.c V4L/DVB: staging/lirc: add lirc_i2c driver 2010-08-02 16:43:22 -03:00
lirc_igorplugusb.c V4L/DVB: staging/lirc: add lirc_igorplugusb driver 2010-08-02 16:43:23 -03:00
lirc_imon.c Staging: lirc: fix compiler warning 2010-08-31 14:49:22 -07:00
lirc_it87.c V4L/DVB: staging/lirc: fix non-CONFIG_MODULES build horkage 2010-08-08 23:42:57 -03:00
lirc_it87.h V4L/DVB: staging/lirc: add lirc_it87 driver 2010-08-02 16:43:26 -03:00
lirc_ite8709.c V4L/DVB: staging/lirc: add lirc_ite8709 driver 2010-08-02 16:43:25 -03:00
lirc_parallel.c V4L/DVB: staging/lirc: fix non-CONFIG_MODULES build horkage 2010-08-08 23:42:57 -03:00
lirc_parallel.h V4L/DVB: staging/lirc: add lirc_parallel driver 2010-08-02 16:43:27 -03:00
lirc_sasem.c staging: Use available error codes 2010-08-31 15:05:12 -07:00
lirc_serial.c V4L/DVB: staging/lirc: CodingStyle cleanups 2010-08-02 16:43:35 -03:00
lirc_sir.c V4L/DVB: staging/lirc: CodingStyle cleanups 2010-08-02 16:43:35 -03:00
lirc_ttusbir.c V4L/DVB: staging/lirc: CodingStyle cleanups 2010-08-02 16:43:35 -03:00
lirc_zilog.c V4L/DVB: staging/lirc: CodingStyle cleanups 2010-08-02 16:43:35 -03:00
Makefile V4L/DVB: STAGING: remove lirc_ene0100 driver 2010-08-08 23:43:00 -03:00
TODO V4L/DVB: staging/lirc: wire up Kconfig and Makefile bits 2010-08-02 16:43:34 -03:00
TODO.lirc_i2c V4L/DVB: staging: Add an specific TODO note for lirc_i2c 2010-08-02 16:43:23 -03:00