Fix common misspellings
[linux-2.6-block.git] / drivers / net / irda / via-ircc.c
index b0a6cd815be198e11334880d9ce8a728ee28d4e4..fc896854e282b886c74927a7115ad8338243c445 100644 (file)
@@ -29,7 +29,7 @@ F02 Oct/28/02: Add SB device ID for 3147 and 3177.
 
 2004-02-16: <sda@bdit.de>
 - Removed unneeded 'legacy' pci stuff.
-- Make sure SIR mode is set (hw_init()) before calling mode-dependant stuff.
+- Make sure SIR mode is set (hw_init()) before calling mode-dependent stuff.
 - On speed change from core, don't send SIR frame with new speed. 
   Use current speed and change speeds later.
 - Make module-param dongle_id actually work.
@@ -385,7 +385,7 @@ static __devinit int via_ircc_open(int i, chipio_t * info, unsigned int id)
        self->io.dongle_id = dongle_id;
 
        /* The only value we must override it the baudrate */
-       /* Maximum speeds and capabilities are dongle-dependant. */
+       /* Maximum speeds and capabilities are dongle-dependent. */
        switch( self->io.dongle_id ){
        case 0x0d:
                self->qos.baud_rate.bits =
@@ -1182,12 +1182,13 @@ F01_E */
 
                skb = dev_alloc_skb(len + 1 - 4);
                /*
-                * if frame size,data ptr,or skb ptr are wrong ,the get next
+                * if frame size, data ptr, or skb ptr are wrong, then get next
                 * entry.
                 */
                if ((skb == NULL) || (skb->data == NULL) ||
                    (self->rx_buff.data == NULL) || (len < 6)) {
                        self->netdev->stats.rx_dropped++;
+                       kfree_skb(skb);
                        return TRUE;
                }
                skb_reserve(skb, 1);