diff options
author | Florian Schilhabel <florian.c.schilhabel@googlemail.com> | 2010-05-04 14:23:43 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-11 11:36:04 -0700 |
commit | 199ef62a287b429a8fa3b7dc5ae6b69f607bf324 (patch) | |
tree | e0b2fb6b9a4478ac111b172db8bfc1222eba8f0f /drivers/staging/rtl8192su/r8192U_core.c | |
parent | Staging: staging/cxt1e1: Convert bare printks to pr_<level> (diff) | |
download | linux-dev-199ef62a287b429a8fa3b7dc5ae6b69f607bf324.tar.xz linux-dev-199ef62a287b429a8fa3b7dc5ae6b69f607bf324.zip |
Staging: rtl8192su: check for skb == NULL
added 2 checks for skb == NULL.
plus cosmetics
Signed-off-by: Florian Schilhabel <florian.c.schilhabel@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rtl8192su/r8192U_core.c')
-rw-r--r-- | drivers/staging/rtl8192su/r8192U_core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/rtl8192su/r8192U_core.c b/drivers/staging/rtl8192su/r8192U_core.c index efba60826adf..5696b00c89fb 100644 --- a/drivers/staging/rtl8192su/r8192U_core.c +++ b/drivers/staging/rtl8192su/r8192U_core.c @@ -1296,7 +1296,6 @@ static int rtl8192_rx_initiate(struct net_device*dev) kfree_skb(skb); break; } -// printk("nomal packet IN request!\n"); usb_fill_bulk_urb(entry, priv->udev, usb_rcvbulkpipe(priv->udev, 3), skb_tail_pointer(skb), RX_URB_SIZE, rtl8192_rx_isr, skb); @@ -1310,7 +1309,6 @@ static int rtl8192_rx_initiate(struct net_device*dev) /* command packet rx procedure */ while (skb_queue_len(&priv->rx_queue) < MAX_RX_URB + 3) { -// printk("command packet IN request!\n"); skb = __dev_alloc_skb(RX_URB_SIZE ,GFP_KERNEL); if (!skb) break; |