]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: rtl8192e: Fix OOM_MESSAGE warnings
authorMateusz Kulikowski <mateusz.kulikowski@gmail.com>
Sun, 31 May 2015 18:19:43 +0000 (20:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 May 2015 21:33:22 +0000 (06:33 +0900)
Remove alloc failed messages where not needed to make checkpatch.pl happy.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl819x_BAProc.c

index 25765b8b8bc4a9fdd8de573adfc14eeb67808ee0..60f536c295abe3ddb43e0373357b1a51a6ea1513 100644 (file)
@@ -92,10 +92,8 @@ static struct sk_buff *rtllib_ADDBA(struct rtllib_device *ieee, u8 *Dst,
                return NULL;
        }
        skb = dev_alloc_skb(len + sizeof(struct rtllib_hdr_3addr));
-       if (skb == NULL) {
-               netdev_err(ieee->dev, "Can't alloc skb for ADDBA_REQ\n");
+       if (skb == NULL)
                return NULL;
-       }
 
        memset(skb->data, 0, sizeof(struct rtllib_hdr_3addr));
 
@@ -160,10 +158,8 @@ static struct sk_buff *rtllib_DELBA(struct rtllib_device *ieee, u8 *dst,
        DelbaParamSet.field.TID = pBA->BaParamSet.field.TID;
 
        skb = dev_alloc_skb(len + sizeof(struct rtllib_hdr_3addr));
-       if (skb == NULL) {
-               netdev_err(ieee->dev, "Can't alloc skb for DELBA_REQ\n");
+       if (skb == NULL)
                return NULL;
-       }
 
        skb_reserve(skb, ieee->tx_headroom);