Fix up a warning in sk98lin:
--- drivers/net/sk98lin/skge.c.orig 2004-08-27 21:01:33.447576657 -0400
+++ drivers/net/sk98lin/skge.c 2004-08-27 21:06:07.199406778 -0400
@@ -788,8 +788,9 @@
cards = skge_probe();
if (cards == 0) {
printk("sk98lin: No adapter found.\n");
+ cards = -ENODEV;
}
- return cards ? 0 : -ENODEV;
+ return cards;
} /* skge_init_module */
--
Matthew Galgoci
System Administrator and Sr. Manager of Ruminants
Red Hat, Inc
919.754.3700 x44155
On Fri, 27 Aug 2004 21:18:57 -0400 (EDT)
Matthew Galgoci [off-list ref] wrote:
Fix up a warning in sk98lin:
Why does it warn? Please provide the warning when fixing
bugs of this nature, thanks.
On Fri, 27 Aug 2004, David S. Miller wrote:
Date: Fri, 27 Aug 2004 18:21:00 -0700
From: David S. Miller <davem@davemloft.net>
To: Matthew Galgoci <redacted>
Cc: netdev@oss.sgi.com, jgarzik@pobox.com
Subject: Re: [patch] kill warning in sk98lin
On Fri, 27 Aug 2004 21:18:57 -0400 (EDT)
Matthew Galgoci [off-list ref] wrote:
quoted
Fix up a warning in sk98lin:
Why does it warn? Please provide the warning when fixing
bugs of this nature, thanks.
Sorry 'bout that.
Module sk98lin cannot be unloaded due to unsafe usage in drivers/net/sk98lin/skge.c:792
--
Matthew Galgoci
System Administrator and Sr. Manager of Ruminants
Red Hat, Inc
919.754.3700 x44155