From patchwork Tue Apr 7 20:25:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Wang X-Patchwork-Id: 216082 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, MIME_BASE64_TEXT, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, UNPARSEABLE_RELAY, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5229C2D0EC for ; Tue, 7 Apr 2020 20:26:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6718C20748 for ; Tue, 7 Apr 2020 20:26:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="ERRCl8Pn" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726407AbgDGU0D (ORCPT ); Tue, 7 Apr 2020 16:26:03 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:32963 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726380AbgDGU0D (ORCPT ); Tue, 7 Apr 2020 16:26:03 -0400 X-UUID: 92afffd9c6cb4daab415fe2e4a020d56-20200408 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=UbWFIDfpNOnnjPYw8DA44ZCVcPaW6m7bX2+v5UeLIPM=; b=ERRCl8PngAo4sRR7vBacrOuOZkfDbQwFgvcsE9/EOpfxbCizu4s5hlyIzEBUySAwTY8z8LAZEfctrocJcdURVc1rbkfS7zNGoMfTEmCNdC4z4/e+MSZYmMI5zYbiAaBRLW+iyj2Jyckyq7D1feGQ4sz/jJm+MKj432yRwDxdYCc=; X-UUID: 92afffd9c6cb4daab415fe2e4a020d56-20200408 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 827516133; Wed, 08 Apr 2020 04:25:58 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 8 Apr 2020 04:25:52 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 8 Apr 2020 04:25:51 +0800 From: To: , CC: , , , Subject: [PATCH] mt76: replace consume_skb with dev_kfree_skb Date: Wed, 8 Apr 2020 04:25:54 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-TM-SNTS-SMTP: F128AB51B999D028722362800A55E212DFBAC26E03CE284711BFDDF30F7DA98B2000:8 X-MTK: N Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Sean Wang consume_skb is identical to dev_kfree_skb, so that replace consume_skb with dev_kfree_skb just to make consistent in whole mt76 driver. Signed-off-by: Sean Wang --- drivers/net/wireless/mediatek/mt76/mt76x02_usb_mcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02_usb_mcu.c b/drivers/net/wireless/mediatek/mt76/mt76x02_usb_mcu.c index a30bb536fc8a..28567e2e4a65 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x02_usb_mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x02_usb_mcu.c @@ -111,7 +111,7 @@ __mt76x02u_mcu_send_msg(struct mt76_dev *dev, struct sk_buff *skb, if (wait_resp) ret = mt76x02u_mcu_wait_resp(dev, seq); - consume_skb(skb); + dev_kfree_skb(skb); return ret; }