mac802154: rx: remove unnecessary parameter
authorAlexander Aring <alex.aring@gmail.com>
Wed, 29 Oct 2014 20:34:35 +0000 (21:34 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 29 Oct 2014 22:07:45 +0000 (23:07 +0100)
This patch removes a not used parameter in ieee802154_deliver_skb.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/mac802154/rx.c

index 2aa80bdcbacfe111aa74aaeb7efef253aadf6ff0..51a55d9200cb854fbbe34c704d2bf2c3f2ba1f98 100644 (file)
@@ -29,7 +29,7 @@
 
 #include "ieee802154_i.h"
 
-static int ieee802154_deliver_skb(struct net_device *dev, struct sk_buff *skb)
+static int ieee802154_deliver_skb(struct sk_buff *skb)
 {
        skb->ip_summed = CHECKSUM_UNNECESSARY;
        skb->protocol = htons(ETH_P_IEEE802154);
@@ -103,7 +103,7 @@ ieee802154_subif_frame(struct ieee802154_sub_if_data *sdata,
 
        switch (mac_cb(skb)->type) {
        case IEEE802154_FC_TYPE_DATA:
-               return ieee802154_deliver_skb(sdata->dev, skb);
+               return ieee802154_deliver_skb(skb);
        default:
                pr_warn("ieee802154: bad frame received (type = %d)\n",
                        mac_cb(skb)->type);