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
..
2005-08-29 15:32:25 -07:00
2005-08-29 15:32:25 -07:00
2005-08-26 16:30:30 -07:00
2005-09-05 18:12:08 -04:00
2005-08-01 19:13:59 -07:00
2005-08-29 15:32:25 -07:00
2005-06-27 00:41:51 -04:00
2005-08-29 16:10:38 -07:00
2005-08-01 19:14:01 -07:00
2005-08-01 19:14:01 -07:00
2005-07-21 14:16:54 -07:00
2005-08-18 16:59:14 -04:00
2005-09-05 18:10:00 -04:00
2005-08-18 22:14:39 -04:00
2005-07-12 12:08:43 -07:00
2005-08-29 15:32:25 -07:00
2005-09-05 17:57:23 -04:00
2005-08-30 00:37:35 -04:00
2005-08-29 15:31:14 -07:00
2005-09-05 18:06:53 -04:00
2005-09-01 17:40:46 -07:00