From patchwork Thu Nov 24 01:26:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kirtika Ruchandani X-Patchwork-Id: 9444661 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2EE09600BA for ; Thu, 24 Nov 2016 01:27:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 25E30275A2 for ; Thu, 24 Nov 2016 01:27:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1940827DCD; Thu, 24 Nov 2016 01:27:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C471E275A2 for ; Thu, 24 Nov 2016 01:27:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936031AbcKXB1E (ORCPT ); Wed, 23 Nov 2016 20:27:04 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:32847 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935508AbcKXB1C (ORCPT ); Wed, 23 Nov 2016 20:27:02 -0500 Received: by mail-pf0-f194.google.com with SMTP id 144so1181929pfv.0 for ; Wed, 23 Nov 2016 17:27:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=ZCMQDvjTuD3HUzk6vC/J7/S3Ss8F3cyTREZlPPU+22U=; b=JRPh3dsyCMZ8+vt+IIivDccYL47GXw/avdezmpV5DKI/MHrNNxGuKlOokvIqh4mPFN B7GpNBHh4blUsLNRz3WSKyK7DGHIMcJSKfN0wP1FKVz32tGAH0HnAJqGnV4W40HucpOC twHTfptS5mP1ntvegZAHQcGg2yKzqmNJZ2hNm1pu0Vfcddc9C9n/CxAqySYzKtUcngkv 8ZfBSTClLlPzewXp69suL5OQSkJvfN69Qj9oVZRkS++4WsenqXmnKDUo1f/laql4lW70 7AD22ZNx4q/pEXgY2ygVE0R7IRd+51EDFtKk/G8gF7EvslIUHb2748trBF60Sa12EX8K c7+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=ZCMQDvjTuD3HUzk6vC/J7/S3Ss8F3cyTREZlPPU+22U=; b=Zlz9/vrZ0gxxBm3cfv6la1VW6GTdRsFFXd98hRZ/1j0YuCYCEn6qL7ASixyJeOcZX/ U2dvlxgrMT71a8Y85ynLj0fWWl3Mn+Z4SyXU/YnN6L9BIsFIqQQKEgLSZvKmPwCqI1+a u9XBWPriDR5KWQ5pMI0I03tLYOtfzeJiMLzMu6Jy930fM5Y9TKkcFdR0YWnCHPUfNKC3 6lR27eP+KR0vstfZoipbvZu8PD0UajNisgPvLaeSiX2/Yw+EILNR1XW90lo9+6kc3jiG cFfY2xfPYr+cOfy04ivQrTH0g41XN/Dshlp+Qyk3Euhs/6XSNtnd7yqxHYGM0spx1NAW QjCA== X-Gm-Message-State: AKaTC013UC3SAzOtz+82Ha0WzOitFjzxvFjzuU30VHt5HXvRtFpiqDQEkSwnjFjIsUbFVQ== X-Received: by 10.84.191.228 with SMTP id a91mr12894844pld.46.1479950822220; Wed, 23 Nov 2016 17:27:02 -0800 (PST) Received: from google.com ([2620:0:1000:1301:7c:c779:de59:30f3]) by smtp.gmail.com with ESMTPSA id 72sm52069890pfw.37.2016.11.23.17.27.01 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 23 Nov 2016 17:27:01 -0800 (PST) From: Kirtika Ruchandani X-Google-Original-From: Kirtika Ruchandani Date: Wed, 23 Nov 2016 17:26:57 -0800 To: Amitkumar Karwar Cc: Arnd Bergmann , Kalle Valo , linux-wireless@vger.kernel.org, Nishant Sarmukadam , Zhaoyang Liu , Bing Zhao , Xinming Hu , Avinash Patil Subject: [PATCH v2 6/7] mwifiex: Removed unused 'pkt_type' variable Message-ID: <34137703e30c2578ba138261d825874a753c88e4.1479950323.git.kirtika@google.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Commit 92263a841b15 introduced mwifiex_deaggr_sdio_pkt which initializes variable pkt_type but does not use it. Compiling with W=1 gives the following warning, fix it. mwifiex/sdio.c: In function ‘mwifiex_deaggr_sdio_pkt’: mwifiex/sdio.c:1198:6: warning: variable ‘pkt_type’ set but not used [-Wunused-but-set-variable] Fixes: 92263a841b15 ("mwifiex: add SDIO rx single port aggregation") Cc: Zhaoyang Liu Cc: Amitkumar Karwar Signed-off-by: Kirtika Ruchandani --- drivers/net/wireless/marvell/mwifiex/sdio.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/wireless/marvell/mwifiex/sdio.c b/drivers/net/wireless/marvell/mwifiex/sdio.c index 6c9f16e..09c586f 100644 --- a/drivers/net/wireless/marvell/mwifiex/sdio.c +++ b/drivers/net/wireless/marvell/mwifiex/sdio.c @@ -1134,7 +1134,6 @@ static void mwifiex_deaggr_sdio_pkt(struct mwifiex_adapter *adapter, { u32 total_pkt_len, pkt_len; struct sk_buff *skb_deaggr; - u32 pkt_type; u16 blk_size; u8 blk_num; u8 *data; @@ -1155,8 +1154,6 @@ static void mwifiex_deaggr_sdio_pkt(struct mwifiex_adapter *adapter, break; } pkt_len = le16_to_cpu(*(__le16 *)(data + SDIO_HEADER_OFFSET)); - pkt_type = le16_to_cpu(*(__le16 *)(data + SDIO_HEADER_OFFSET + - 2)); if ((pkt_len + SDIO_HEADER_OFFSET) > blk_size) { mwifiex_dbg(adapter, ERROR, "%s: error in pkt_len,\t"