From patchwork Sat Sep 29 22:30:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masashi Honma X-Patchwork-Id: 10621021 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3C92F14BD for ; Sat, 29 Sep 2018 22:31:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E64929CFC for ; Sat, 29 Sep 2018 22:31:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0E5CF29CFF; Sat, 29 Sep 2018 22:31:07 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,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 ABFCF29CFC for ; Sat, 29 Sep 2018 22:31:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726286AbeI3FBL (ORCPT ); Sun, 30 Sep 2018 01:01:11 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:39767 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726009AbeI3FBL (ORCPT ); Sun, 30 Sep 2018 01:01:11 -0400 Received: by mail-pg1-f195.google.com with SMTP id r9-v6so3027092pgv.6 for ; Sat, 29 Sep 2018 15:30:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=A9N3caMl+Ong3pap83HKSoroSQUazkfxuD2J09RQa2g=; b=pMS749zPnCgWXBTPqa9+sJsTZ1zaDD+uTn9Jj+wI9gYJSTrb6vOtOuicDLpW3WFl3X nwA6ZpAWWq9Qw01yjwYgY0X7zIaws5xFGQM7rIyeLJyLeLfoVpv0R7MeUGzb+0WVdOfB MDIfjGgbajq4AN97QSfOqmIA1HxurYSSsz/FiqFYctGObgxKIJF7rEcwZ4mbvXMna4F/ FQyi+cAszRabyxeL+7BFpPWnRBg+eGCHQwoihlFltCwLzg8vOjv2NV52eqfzLBByouLv pyoI/wssogluPpDBQgfcV5j6fTopTtolnJBZ40MyTdwt2ZLnMUxgE/3XsMAfcPgnUF4Z XONg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=A9N3caMl+Ong3pap83HKSoroSQUazkfxuD2J09RQa2g=; b=eZRs3JeS900jnoK4MwIn02R7R5H3ca1Kwmf+zAx09+lTfE4mYvdj27So4/ccQZb9Y+ AuPHEWTDIY9rOHOPLkVRHNQj63zbm5rutGUztYOkkoNEKU98AkpbQh3j7ImhJi4oC5am 4Ozf2lHbi+hVn0oe0oETdUw3LwCm3vHjzj42h7lZJ/D0gR1CCt4EiMtna9dd8z1tssgt k9Q9ZdRKqJGMXCn6fAE4lpIS7VOKb411Kp5HGPBVdNB+iOp6qeoVFljLW6G/9wPKnO5l t2h+7Pnin7lIzktOWhrztHeBab3sm3nlem++RQYQmojkB1E21xbeyUTciLGgtmLuWHLS 282g== X-Gm-Message-State: ABuFfogrhECwPbAeWKRDOoJZ59eWBGRSUqOiv5JxDX277RmlK4RBXU4c /LKzcPoIxs+9Eps9rzV6LXt8/buv X-Google-Smtp-Source: ACcGV61Dh0nZaAHhHSBtjAzVWsLJ5Nir5rvBES5mD7kKhIYNVrMlTvt+MqQXlGykGAZ0RBtmxqVK/Q== X-Received: by 2002:a17:902:6e17:: with SMTP id u23-v6mr4897590plk.28.1538260258484; Sat, 29 Sep 2018 15:30:58 -0700 (PDT) Received: from corei7.flets-east.jp ([2409:11:321:2100:a0a7:3aa1:8e46:84a2]) by smtp.gmail.com with ESMTPSA id p1-v6sm223305pfj.72.2018.09.29.15.30.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 29 Sep 2018 15:30:57 -0700 (PDT) From: Masashi Honma To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Masashi Honma Subject: [PATCH] mac80211: Remove unused initialization Date: Sun, 30 Sep 2018 07:30:45 +0900 Message-Id: <1538260245-15467-1-git-send-email-masashi.honma@gmail.com> X-Mailer: git-send-email 2.7.4 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 The variable j will be initialized at trailing step. Signed-off-by: Masashi Honma --- net/mac80211/rc80211_minstrel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mac80211/rc80211_minstrel.c b/net/mac80211/rc80211_minstrel.c index 07fb219..fc6134c 100644 --- a/net/mac80211/rc80211_minstrel.c +++ b/net/mac80211/rc80211_minstrel.c @@ -632,7 +632,7 @@ minstrel_init_cck_rates(struct minstrel_priv *mp) if (!sband) return; - for (i = 0, j = 0; i < sband->n_bitrates; i++) { + for (i = 0; i < sband->n_bitrates; i++) { struct ieee80211_rate *rate = &sband->bitrates[i]; if (rate->flags & IEEE80211_RATE_ERP_G)