]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: wilc1000: remove meaningless line
authorJohnny Kim <johnny.kim@atmel.com>
Tue, 8 Sep 2015 08:08:00 +0000 (17:08 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:46 +0000 (18:24 -0700)
The current driver is calling skb_reserve function to align memory in
frmw_to_linux function. However, the wrong value is used as the input argument.
Besides, the process is not necessary because the address already is algined
in dev_alloc_skb function. So, this patch removes the line for dummy headroom.

Signed-off-by: Johnny Kim <johnny.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c

index d68b42cbd14c706344a4b36174053b1213f03c46..b563c9e2137681f9bebdc516129ee0737baeb3da 100644 (file)
@@ -2161,8 +2161,6 @@ void frmw_to_linux(uint8_t *buff, uint32_t size, uint32_t pkt_offset)
                        return;
                }
 
-               skb_reserve(skb, (unsigned int)skb->data & 0x3);
-
                if (g_linux_wlan == NULL || wilc_netdev == NULL)
                        PRINT_ER("wilc_netdev in g_linux_wlan is NULL");
                skb->dev = wilc_netdev;