Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 98be165b authored by Alexander Aring's avatar Alexander Aring Committed by Marcel Holtmann
Browse files

fakelb: remove fakelb_hw_deliver



This patch cleanups the fakelb_hw_deliver function by removing them.

Signed-off-by: default avatarAlexander Aring <alex.aring@gmail.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent e214a904
Loading
Loading
Loading
Loading
+6 −12
Original line number Diff line number Diff line
@@ -66,16 +66,6 @@ fakelb_hw_channel(struct ieee802154_hw *hw, u8 page, u8 channel)
	return 0;
}

static void
fakelb_hw_deliver(struct fakelb_phy *phy, struct sk_buff *skb)
{
	struct sk_buff *newskb;

	newskb = pskb_copy(skb, GFP_ATOMIC);
	if (newskb)
		ieee802154_rx_irqsafe(phy->hw, newskb, 0xcc);
}

static int
fakelb_hw_xmit(struct ieee802154_hw *hw, struct sk_buff *skb)
{
@@ -88,8 +78,12 @@ fakelb_hw_xmit(struct ieee802154_hw *hw, struct sk_buff *skb)
			continue;

		if (current_phy->page == phy->page &&
		    current_phy->channel == phy->channel)
			fakelb_hw_deliver(phy, skb);
		    current_phy->channel == phy->channel) {
			struct sk_buff *newskb = pskb_copy(skb, GFP_ATOMIC);

			if (newskb)
				ieee802154_rx_irqsafe(phy->hw, newskb, 0xcc);
		}
	}
	read_unlock_bh(&fakelb_ifup_phys_lock);