X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fnet%2Fsb1250-mac.c;h=e0f88fbd33f58ee35a601b8e8347e9fa47fc6738;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=7914167acc8f954e77da3bad5529ea3b779b0c6d;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/drivers/net/sb1250-mac.c b/drivers/net/sb1250-mac.c index 7914167ac..e0f88fbd3 100644 --- a/drivers/net/sb1250-mac.c +++ b/drivers/net/sb1250-mac.c @@ -55,12 +55,6 @@ static int int_timeout = 0; /* Time in jiffies before concluding the transmitter is hung. */ #define TX_TIMEOUT (2*HZ) -#if !defined(__OPTIMIZE__) || !defined(__KERNEL__) -#warning You must compile this file with the correct options! -#warning See the last lines of the source file. -#error You must compile this driver with "-O". -#endif - #include #include #include @@ -2900,15 +2894,15 @@ static void __exit sbmac_cleanup_module(void) { struct net_device *dev; - sbmac_port_t port; int idx; for (idx = 0; idx < MAX_UNITS; idx++) { + struct sbmac_softc *sc; dev = dev_sbmac[idx]; if (!dev) continue; - struct sbmac_softc *sc = netdev_priv(dev); + sc = netdev_priv(dev); unregister_netdev(dev); sbmac_uninitctx(sc); free_netdev(dev);