diff options
author | Lorenzo Bianconi <lorenzo.bianconi@redhat.com> | 2019-02-04 17:51:27 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2019-02-18 19:54:33 +0100 |
commit | 9df0fab9d1cad3cbdd47683e5b4f3c7c09a91bd3 (patch) | |
tree | 6ddb4d1f33e9f82d79c0f42997186bbdaf74cd17 /drivers/net/wireless/mediatek/mt76/mt76x02_mcu.c | |
parent | b29e46b76552c2b1a76344602a0bcdc8ba8629da (diff) | |
download | linux-stable-9df0fab9d1cad3cbdd47683e5b4f3c7c09a91bd3.tar.gz linux-stable-9df0fab9d1cad3cbdd47683e5b4f3c7c09a91bd3.tar.bz2 linux-stable-9df0fab9d1cad3cbdd47683e5b4f3c7c09a91bd3.zip |
mt76: move mt76_mcu_msg_alloc in mt76-core
Move mt76_mcu_msg_alloc in mt76-core module and remove duplicated code.
mt76_mcu_msg_alloc will be reused adding support for mt7603 driver
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76x02_mcu.c')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt76x02_mcu.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02_mcu.c b/drivers/net/wireless/mediatek/mt76/mt76x02_mcu.c index b7f4edb729e3..d184551b9845 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x02_mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x02_mcu.c @@ -21,18 +21,6 @@ #include "mt76x02_mcu.h" -static struct sk_buff *mt76x02_mcu_msg_alloc(const void *data, int len) -{ - struct sk_buff *skb; - - skb = alloc_skb(len, GFP_KERNEL); - if (!skb) - return NULL; - memcpy(skb_put(skb, len), data, len); - - return skb; -} - static struct sk_buff * mt76x02_mcu_get_response(struct mt76x02_dev *dev, unsigned long expires) { |