WSL2-Linux-Kernel/drivers/net/irda
Peter Senna Tschudin c65a9656f1 via-ircc: 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: David S. Miller <davem@davemloft.net>
2014-06-02 17:04:05 -07:00
..
Kconfig irda: sh_irda: Enable driver compilation with COMPILE_TEST 2014-05-14 15:23:55 -04:00
Makefile net: irda: ep7211-sir: Remove driver 2014-02-06 19:54:48 -08:00
act200l-sir.c
actisys-sir.c
ali-ircc.c
ali-ircc.h
au1k_ir.c drivers/net: delete non-required instances of include <linux/init.h> 2014-01-16 11:53:26 -08:00
bfin_sir.c
bfin_sir.h
donauboe.c
donauboe.h
esi-sir.c
girbil-sir.c
irda-usb.c drivers/net: delete non-required instances of include <linux/init.h> 2014-01-16 11:53:26 -08:00
irda-usb.h
irtty-sir.c irtty-sir.c: Do not set_termios() on irtty_close() 2014-02-17 16:27:51 -05:00
irtty-sir.h
kingsun-sir.c drivers/net: delete non-required instances of include <linux/init.h> 2014-01-16 11:53:26 -08:00
ks959-sir.c drivers/net: delete non-required instances of include <linux/init.h> 2014-01-16 11:53:26 -08:00
ksdazzle-sir.c drivers/net: delete non-required instances of include <linux/init.h> 2014-01-16 11:53:26 -08:00
litelink-sir.c
ma600-sir.c
mcp2120-sir.c
mcs7780.c drivers/net: delete non-required instances of include <linux/init.h> 2014-01-16 11:53:26 -08:00
mcs7780.h
nsc-ircc.c
nsc-ircc.h
old_belkin-sir.c
pxaficp_ir.c
sa1100_ir.c
sh_irda.c
sh_sir.c irda: sh_sir: use devm_request_irq() 2014-01-09 22:57:13 -05:00
sir-dev.h
sir_dev.c
sir_dongle.c drivers/net: delete non-required instances of include <linux/init.h> 2014-01-16 11:53:26 -08:00
smsc-ircc2.c
smsc-ircc2.h
smsc-sio.h
stir4200.c drivers/net: delete non-required instances of include <linux/init.h> 2014-01-16 11:53:26 -08:00
tekram-sir.c
toim3232-sir.c
via-ircc.c via-ircc: Remove useless return variables 2014-06-02 17:04:05 -07:00
via-ircc.h
vlsi_ir.c
vlsi_ir.h
w83977af.h
w83977af_ir.c w83977af_ir: remove two faux Kconfig macros 2014-05-07 15:24:07 -04:00
w83977af_ir.h