mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-24 08:02:35 +00:00
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> |
History
|
|
|---|---|---|
| .. | ||
| Kconfig | ||
| lirc_bt829.c | ||
| lirc_ene0100.h | ||
| lirc_i2c.c | ||
| lirc_igorplugusb.c | ||
| lirc_imon.c | ||
| lirc_it87.c | ||
| lirc_it87.h | ||
| lirc_ite8709.c | ||
| lirc_parallel.c | ||
| lirc_parallel.h | ||
| lirc_sasem.c | ||
| lirc_serial.c | ||
| lirc_sir.c | ||
| lirc_ttusbir.c | ||
| lirc_zilog.c | ||
| Makefile | ||
| TODO | ||
| TODO.lirc_i2c | ||