kernel-ark/drivers
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
..
acorn
acpi
atm
base
block [PATCH] drivers: convert kcalloc to kzalloc 2005-09-07 16:57:46 -07:00
bluetooth
cdrom
char [PATCH] ipmi poweroff: fix chassis control 2005-09-07 16:57:49 -07:00
cpufreq
crypto
dio
eisa
fc4
firmware
hwmon
i2c [PATCH] drivers: convert kcalloc to kzalloc 2005-09-07 16:57:46 -07:00
ide
ieee1394 [PATCH] provide MODALIAS= enviroment variable to autoload ieee1394 modules via udev 2005-09-07 16:57:41 -07:00
infiniband [PATCH] drivers: convert kcalloc to kzalloc 2005-09-07 16:57:46 -07:00
input [PATCH] Input: Add a new switch event type 2005-09-07 16:57:54 -07:00
isdn [PATCH] isdn_v110 warning fix 2005-09-07 16:57:36 -07:00
macintosh
mca
md
media [PATCH] Remove non-arch consumers of asm/segment.h 2005-09-07 16:57:34 -07:00
message
mfd
misc
mmc [PATCH] mmc: conditional scr sysfs entry 2005-09-07 16:57:52 -07:00
mtd
net [PATCH] Fix smsc_ircc_init return value 2005-09-07 16:57:59 -07:00
nubus
oprofile
parisc
parport
pci
pcmcia
pnp
s390
sbus
scsi [PATCH] drivers: convert kcalloc to kzalloc 2005-09-07 16:57:46 -07:00
serial [PATCH] Remove non-arch consumers of asm/segment.h 2005-09-07 16:57:34 -07:00
sh
sn
tc
telephony
usb [PATCH] USB: convert kcalloc to kzalloc 2005-09-07 16:57:46 -07:00
video [PATCH] w100fb: Rewrite for platform independence 2005-09-07 16:57:53 -07:00
w1
zorro
Kconfig
Makefile