This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / drivers / net / sk98lin / skge.c
index 503fdff..327e779 100644 (file)
@@ -788,7 +788,8 @@ static int __init skge_init_module(void)
        cards = skge_probe();
        if (cards == 0) {
                printk("sk98lin: No adapter found.\n");
-       }
+       } else
+       __unsafe(THIS_MODULE);
        return cards ? 0 : -ENODEV;
 } /* skge_init_module */
 
@@ -1927,7 +1928,6 @@ struct sk_buff    *pMessage)      /* pointer to send-message              */
        */
        if (BytesSend < C_LEN_ETHERNET_MINSIZE) {
                if ((pMessage = skb_padto(pMessage, C_LEN_ETHERNET_MINSIZE)) == NULL) {
-                       spin_unlock_irqrestore(&pTxPort->TxDesRingLock, Flags);
                        return 0;
                }
                pMessage->len = C_LEN_ETHERNET_MINSIZE;