lkml.org 
[lkml]   [2002]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectPatch: linux-2.5.2-pre8/drivers/net/aironet4500_core.c tried to return NODEV, should be -ENODEV

linux-2.5.2-pre8/drivers/net/aironet4500_core.c
contains contains a routine that tried to return NODEV as
an error code where the author's intention was apparently
-ENODEV. That is the second error of this type that the
change in kdev_t has exposed (the other one was in
drivers/isdn/sc/command.c).

Here is the patch.

--
Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 104
adam@yggdrasil.com \ / San Jose, California 95129-1034
+1 408 261-6630 | g g d r a s i l United States of America
fax +1 408 261-6631 "Free Software For The Rest Of Us."
--- linux-2.5.2-pre8/drivers/net/aironet4500_core.c Sun Sep 30 12:26:06 2001
+++ linux/drivers/net/aironet4500_core.c Sat Jan 5 02:57:16 2002
@@ -2836,8 +2836,7 @@
return 0;
final:
printk(KERN_ERR "aironet init failed \n");
- return NODEV;
-
+ return -ENODEV;
};

int awc_private_init(struct net_device * dev){
\
 
 \ /
  Last update: 2005-03-22 13:15    [W:0.020 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site