From patchwork Fri May 14 22:07:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhishek Kumar X-Patchwork-Id: 439316 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=-19.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 5DA84C433B4 for ; Fri, 14 May 2021 22:09:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3576A61440 for ; Fri, 14 May 2021 22:09:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233642AbhENWLH (ORCPT ); Fri, 14 May 2021 18:11:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233451AbhENWLE (ORCPT ); Fri, 14 May 2021 18:11:04 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDBA0C06175F for ; Fri, 14 May 2021 15:09:51 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id e19so721425pfv.3 for ; Fri, 14 May 2021 15:09:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EVEwKEdVLlVVJVxedoNBc4BWAXFfR9V6+rvEkmkqNqo=; b=lf/df1n6657u4+dZTrwF6xxCFyjzE5ovnQgCJaDGuK17YTXI0MQoYgqn2DBtrXTM9y 6qmBCVv4NMVI9HnQMblrhm2Y8iWZpF12WPu40pq/Vru87pc9BbgDit95m2cv8C4RmXY5 i6IBr1nP44ztPdfmUclXOAZkOG/tjzQ5koJ1E= 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:mime-version :content-transfer-encoding; bh=EVEwKEdVLlVVJVxedoNBc4BWAXFfR9V6+rvEkmkqNqo=; b=i0NzpgsMnwCMk2cO2eWqDdN7Q+HNUfBpPNMWIM66FV/qc6eq0rOo3zfYs/dq3JAwHa 2vYn/JUovRXPfEPLru30/BG6AnN4d4wLRiU+cn5fiAE3AANmu4BujYOtIPKw9x+MX8Zv z45bYyiSALE/FoNGwnNJ8zH3QpwpZLxo30ITDGXx55s5QTmTHQzXZMPZbUFrh+LmfTgq NqSFFXzq7D6ItfIprD9hlzC2DpmO9YAtEbGnvLw3gDXJuXVerZFFwi572DR5IP7FNw5p zGzjNSyjY7zVK4FGKQ5Z7vfj5W7ydkV6szRgAACMhkIJokzvb325fHvWZmM9L6G7QBO/ CtCg== X-Gm-Message-State: AOAM5311oBAmsr5qU5fzSfPLWymDiicBo8kDZvGMgtnXKCj17QXSlBsY 9TtUxd8l+043L15gVKCa/kYyAQ== X-Google-Smtp-Source: ABdhPJwq18GMShSHikNPymoScSOxvtF7YXVCscqGBVyyUnLW5CUGpxUPQ8en98R5qUf4KEmP5j2zxw== X-Received: by 2002:a63:d64f:: with SMTP id d15mr48686658pgj.137.1621030191378; Fri, 14 May 2021 15:09:51 -0700 (PDT) Received: from kuabhs-cdev.c.googlers.com.com (254.80.82.34.bc.googleusercontent.com. [34.82.80.254]) by smtp.gmail.com with ESMTPSA id j4sm6446156pjm.10.2021.05.14.15.09.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 May 2021 15:09:51 -0700 (PDT) From: Abhishek Kumar To: Johannes Berg , Kalle Valo Cc: briannorris@chromium.org, ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, Jouni Malinen , Wen Gong , kuabhs@chromium.org, "David S. Miller" , Jakub Kicinski , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH] ath10k: remove unused variable in ath10k_htt_rx_h_frag_pn_check Date: Fri, 14 May 2021 22:07:42 +0000 Message-Id: <20210514220644.1.Iad576de95836b74aba80a5fc28d7131940eca190@changeid> X-Mailer: git-send-email 2.31.1.751.gd2f1c929bd-goog MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The local variable more_frags in ath10k_htt_rx_h_frag_pn_check is not used. This patch is to remove that. Fixes: a1166b2653db ("ath10k: add CCMP PN replay protection for fragmented frames for PCIe") Signed-off-by: Abhishek Kumar --- drivers/net/wireless/ath/ath10k/htt_rx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c b/drivers/net/wireless/ath/ath10k/htt_rx.c index 7ffb5d5b2a70..adbaeb67eedf 100644 --- a/drivers/net/wireless/ath/ath10k/htt_rx.c +++ b/drivers/net/wireless/ath/ath10k/htt_rx.c @@ -1787,7 +1787,6 @@ static bool ath10k_htt_rx_h_frag_pn_check(struct ath10k *ar, struct ath10k_peer *peer; union htt_rx_pn_t *last_pn, new_pn = {0}; struct ieee80211_hdr *hdr; - bool more_frags; u8 tid, frag_number; u32 seq; @@ -1805,7 +1804,6 @@ static bool ath10k_htt_rx_h_frag_pn_check(struct ath10k *ar, last_pn = &peer->frag_tids_last_pn[tid]; new_pn.pn48 = ath10k_htt_rx_h_get_pn(ar, skb, offset, enctype); - more_frags = ieee80211_has_morefrags(hdr->frame_control); frag_number = le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_FRAG; seq = (__le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_SEQ) >> 4;