tmp_suning_uos_patched/drivers/net/irda
Brice Goglin 505db03639 [PATCH] Fix smsc_ircc_init return value
I noticed a strange return value in smsc_ircc_init in
drivers/net/irda/smsc_ircc2.c in rc4-mm1.

When reaching the line "if (ircc_fir > 0 && ircc_sir > 0)", ret is 0.  So I
don't see the point of setting it to 0 in the "else" case.  >From what I
see in 2.6.12 it should probably be set to -ENODEV at the begining of the
"else" case.  The attached patch does this.

Note that I didn't actually see any breakage caused by this.

Signed-off-by: Brice Goglin <Brice.Goglin@ens-lyon.org>
Cc: Dmitry Torokhov <dtor_core@ameritech.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-09-07 16:57:59 -07:00
..
act200l-sir.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
act200l.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
actisys-sir.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
actisys.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ali-ircc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ali-ircc.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
au1k_ir.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
au1000_ircc.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
donauboe.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
donauboe.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ep7211_ir.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
esi-sir.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
esi.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
girbil-sir.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
girbil.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
irda-usb.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
irda-usb.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
irport.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
irport.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
irtty-sir.c [PATCH] Convert users to tty_unregister_ldisc() 2005-06-23 09:45:36 -07:00
irtty-sir.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Kconfig [PATCH] IrDA: IrDA: Fix CONFIG_VIA_FIR typo (double `those') 2005-06-12 20:43:21 -07:00
litelink-sir.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
litelink.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ma600-sir.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ma600.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mcp2120-sir.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mcp2120.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
nsc-ircc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
nsc-ircc.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
old_belkin-sir.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
old_belkin.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sa1100_ir.c [PATCH] u32 vs. pm_message_t fixes for drivers/net 2005-04-16 15:25:25 -07:00
sir_core.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sir_dev.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sir_dongle.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sir_kthread.c [PATCH] Cleanup patch for process freezing 2005-06-25 17:10:13 -07:00
sir-dev.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
smsc-ircc2.c [PATCH] Fix smsc_ircc_init return value 2005-09-07 16:57:59 -07:00
smsc-ircc2.h [PATCH] smsc-ircc2: whitespace fixes 2005-09-07 16:57:57 -07:00
smsc-sio.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
stir4200.c [PATCH] Cleanup patch for process freezing 2005-06-25 17:10:13 -07:00
tekram-sir.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tekram.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
via-ircc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
via-ircc.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vlsi_ir.c [PATCH] swsusp: switch pm_message_t to struct 2005-09-05 00:06:16 -07:00
vlsi_ir.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
w83977af_ir.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
w83977af_ir.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
w83977af.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00