From patchwork Fri Nov 18 08:46:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kirtika Ruchandani X-Patchwork-Id: 9435953 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 0AFFE6047D for ; Fri, 18 Nov 2016 08:46:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 03BEE297E7 for ; Fri, 18 Nov 2016 08:46:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC4902982A; Fri, 18 Nov 2016 08:46:20 +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 41FCB297E7 for ; Fri, 18 Nov 2016 08:46:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752559AbcKRIqS (ORCPT ); Fri, 18 Nov 2016 03:46:18 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:33206 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751713AbcKRIqR (ORCPT ); Fri, 18 Nov 2016 03:46:17 -0500 Received: by mail-pg0-f66.google.com with SMTP id 3so20096103pgd.0 for ; Fri, 18 Nov 2016 00:46:17 -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=eT1QUAsq55hTnCjtUAtFlWbqlnJxc+Y5aA9zuH5Yti8=; b=B7UDWnnbrbZ0AIPYUZ2FyVqWUghHG4N1uh+hDgh/fIzfX1Z31n8cDAO9mEpej8odoR Tkk9iV/Xc8UxyAE5IXuJjpNcpancxGCuonM4BLgkND1CM5vl+91FMY57UpSgEOJ5upgL /GX+7JKvcnZArKvHtIUyZL7tIOkVLcuHLuG4FVbycoEj67QiBddRYJb9b5Aw54Bym6MB cX7Pi4o15DUjpxY4DhxMpQWD2BKFeiGq85g7LPAEJFCb/S/w10snx/TEtnncq9eBnXgn d5eNsMWUVI2BrCni2yV0JLLYKuf0NVn77mBMrzuNdA+k4sPecFqApqRSJDbF7cxESmK9 ytFA== 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=eT1QUAsq55hTnCjtUAtFlWbqlnJxc+Y5aA9zuH5Yti8=; b=cc3yiqNIpeSU78uiklX8ZQ+XX3gb6DrvFYemnf8kFpo7DbwOz2bAxKcZ2H0KEbOKGl q+ttEiAZ19svXCK2umStVAK2nrwsgkPk0E4lNRoFChrv5S4vcErBujJo7qg5ewrIzwSX J6fssKBMBtM1v50eWSdYxAhK9MakKu5V9bahxBpkTKMyChNkHZPFxeKrpn2hJqRW8AfB cqXqcQ+CQLFVapViUIZtidTmfdQDaAWOILEnRYaS1w9a89PsWWPiUgOLLograODyaLbp wmQIqQ7qRbsQGPSY3VXrXPF43h3fijvfeqZxUE7i0yK828JPZ35r2xYdK0WIDwroR4sA KPBw== X-Gm-Message-State: ABUngveVG2HR73arltJs5HSKo9LUtRSxX0uklY11srH8fZL8dub1d9ZYpwCP+e36kfIgjw== X-Received: by 10.98.196.199 with SMTP id h68mr10285281pfk.120.1479458777071; Fri, 18 Nov 2016 00:46:17 -0800 (PST) Received: from google.com ([2620:0:1000:1301:853b:c23c:5fbf:7fc7]) by smtp.gmail.com with ESMTPSA id r74sm15159100pfl.79.2016.11.18.00.46.14 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 18 Nov 2016 00:46:16 -0800 (PST) From: Kirtika Ruchandani X-Google-Original-From: Kirtika Ruchandani Date: Fri, 18 Nov 2016 00:46:10 -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 6/7] mwifiex: Removed unused 'pkt_type' variable Message-ID: 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(-) -- 2.8.0.rc3.226.g39d4020 diff --git a/drivers/net/wireless/marvell/mwifiex/sdio.c b/drivers/net/wireless/marvell/mwifiex/sdio.c index 41ec59d7..4028a8c 100644 --- a/drivers/net/wireless/marvell/mwifiex/sdio.c +++ b/drivers/net/wireless/marvell/mwifiex/sdio.c @@ -1193,7 +1193,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; @@ -1214,8 +1213,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"