From patchwork Tue Mar 7 08:50:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Straube X-Patchwork-Id: 65337 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2331574wrd; Tue, 7 Mar 2023 01:28:23 -0800 (PST) X-Google-Smtp-Source: AK7set/uBqJy8BZ9RXb+a2ZvMTugxj2YqQSyPZ3SSReTUUdPKuMO2X3YITdrogjW2T5GUkCuFoYr X-Received: by 2002:a17:906:36d3:b0:8bf:e95c:467b with SMTP id b19-20020a17090636d300b008bfe95c467bmr12624354ejc.63.1678181303619; Tue, 07 Mar 2023 01:28:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678181303; cv=none; d=google.com; s=arc-20160816; b=QsVlrRKsFJ/LT+bVY4uRoLLBOAjd5M99xRWx2LpxWEky2jYSSxq5mBjrXnVp8wOTgZ yqI4iaB1Qhu1Sbc3qy7nJaViTATAoIhHpw8LUnNKfJXvcIlIPN39iWI4SPffc119T2cI MoJNx5zIDUkKtRiCH6t/y3fXav/K1uJdHCt7Pbed16mBWmbZAfebALexJ5C9w8/JhMq2 1jFNoaekV/MjW03SrGtnJ5OiC+Np6WknrpaxSzlBviV167AzSPJcCoqv3/Bznh297fFU ZqyTSS8EZKq3V7bNZGc+emHw4IQuY8Ak2kyw7hhzyQLenK1nf/ZXBYxc5NKTNpEuKdyu BPyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mBfKXBJBDHVK+Yn8iTiZud/hY3U7WgMo73YMptZicWs=; b=gt4oKrwVIiscjWgzFlYpwsEZCW17nckF4g0G2QAli69hgbgNWVe/ftf4jYegmMpp1U WBsYY2f1t3vehQzXAO1UictR/Y1Wh3w/It/M10MrwlqwnWZTOxEFtqvofksdSl+mMvwy Hssjho1PEmhuACoXKDu0E3PKKnf9Zyguz5nCf00WmBmJiHs2I77+p7+JDSbUzL4Jy5// m6pbjMJut0/Ssbm5kkPdbFWcZd+kjcuDV+tHchKjhf/UvWtrJocTeDH285t4jkw0v729 Pv3kx+s66BhvObtdnN8hBEwghWMjrS22udCN2bLBzYS0OSqrHxYqq/UlAcZjNWJR7u/K FlOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TOAuHtZj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r16-20020a1709062cd000b008d17b125783si10922970ejr.835.2023.03.07.01.28.00; Tue, 07 Mar 2023 01:28:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TOAuHtZj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230061AbjCGIu0 (ORCPT + 99 others); Tue, 7 Mar 2023 03:50:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229972AbjCGIuN (ORCPT ); Tue, 7 Mar 2023 03:50:13 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EC8B38EB5 for ; Tue, 7 Mar 2023 00:50:10 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id cy23so49137341edb.12 for ; Tue, 07 Mar 2023 00:50:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678179009; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mBfKXBJBDHVK+Yn8iTiZud/hY3U7WgMo73YMptZicWs=; b=TOAuHtZjM3Ijc0PfNTcNtMrGRTmPJYiEm1CvHah72QXea4yC2xxYX1TNeuMNhRIGkj +lUwq3preMtRpKrJlkkuetb2G69HAiO1Ryr9AFLiFbY1LCEFiYzWyAyWYn8T6Bi0taRK bh+2KKVrQVXqPzbaQZyUdn9XD7X6QJL/5op9mBP93ruy+K0PSWhSOJpdOosJyfyA8yUN WMoYmuclPwU2wGd0UJhoTPt7NJ1R7pNTSr1FMW2a7SESYAGIFm5ahgK7vRuDa8v7RUM9 stZoT83PLOeNfrytDNfQtSps3HuXvxa+OQOR7jNWSs2Cq0S2Gx8jCJj/Yzgw5yM5cwkN zmgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678179009; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mBfKXBJBDHVK+Yn8iTiZud/hY3U7WgMo73YMptZicWs=; b=nkl0asPydh80q/QwLUCyeG3GsP4o8G7fTLfO23O2R34UGfp3U3+VtKgw6oKHFaHvBC wwkcuoSGQve/hY59fahQ8+6zOSynH8KbTfPHkXg3gkIwW7bBHr2SDGBXr8ldpoyxDKFw CeW5UrI+V9J8eZTwZFEl4DOOI2GFP+b3iYYpKfXa1DjsWdBAI+8QhA+I75fam3Nw6PnA 0cTEIp6oTp6KbfdUXfNV/OvNwwUltCcB1kfhFIpJuu+wp5wRw6qcByNbciQoaLKbIYfw 4ssuV1Zi350VyqRKQBxuutkJslFvUu6cCHOjYIFOJp6qCgbNxiEfPNa6YU3niQ0rvhRo 8xEg== X-Gm-Message-State: AO0yUKVgavvjFxjYWKtgvQqe3sVE267yj7nQQFUeALOX//0TCrTRKJCK Ec5GaZb5H5e8+Ucyy5539Kw= X-Received: by 2002:a17:907:8691:b0:8b1:3009:536b with SMTP id qa17-20020a170907869100b008b13009536bmr16987639ejc.29.1678179009200; Tue, 07 Mar 2023 00:50:09 -0800 (PST) Received: from localhost.localdomain (ip5f5abbe7.dynamic.kabel-deutschland.de. [95.90.187.231]) by smtp.gmail.com with ESMTPSA id o21-20020a170906289500b008ef42f9cf48sm5707402ejd.82.2023.03.07.00.50.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 00:50:09 -0800 (PST) From: Michael Straube To: gregkh@linuxfoundation.org Cc: Larry.Finger@lwfinger.net, phil@philpotter.co.uk, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Michael Straube Subject: [PATCH 2/2] staging: r8188eu: bgrpkey_handshake is set but never used Date: Tue, 7 Mar 2023 09:50:03 +0100 Message-Id: <20230307085003.5025-3-straube.linux@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230307085003.5025-1-straube.linux@gmail.com> References: <20230307085003.5025-1-straube.linux@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759700638344599887?= X-GMAIL-MSGID: =?utf-8?q?1759700638344599887?= The field bgrpkey_handshake of struct security_priv is set but never used. Remove it. Signed-off-by: Michael Straube --- drivers/staging/r8188eu/core/rtw_mlme.c | 1 - drivers/staging/r8188eu/include/rtw_security.h | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_mlme.c b/drivers/staging/r8188eu/core/rtw_mlme.c index fb7d0e161fdd..809ac0317db2 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme.c +++ b/drivers/staging/r8188eu/core/rtw_mlme.c @@ -944,7 +944,6 @@ static struct sta_info *rtw_joinbss_update_stainfo(struct adapter *padapter, str if (padapter->securitypriv.dot11AuthAlgrthm == dot11AuthAlgrthm_8021X) { padapter->securitypriv.binstallGrpkey = false; padapter->securitypriv.busetkipkey = false; - padapter->securitypriv.bgrpkey_handshake = false; psta->ieee8021x_blocked = true; psta->dot118021XPrivacy = padapter->securitypriv.dot11PrivacyAlgrthm; memset((u8 *)&psta->dot118021x_UncstKey, 0, sizeof(union Keytype)); diff --git a/drivers/staging/r8188eu/include/rtw_security.h b/drivers/staging/r8188eu/include/rtw_security.h index 783ae18a122a..8c187de7a522 100644 --- a/drivers/staging/r8188eu/include/rtw_security.h +++ b/drivers/staging/r8188eu/include/rtw_security.h @@ -116,7 +116,6 @@ struct security_priv { u8 binstallGrpkey; u8 busetkipkey; u8 bcheck_grpkey; - u8 bgrpkey_handshake; s32 sw_encrypt;/* from registry_priv */ s32 sw_decrypt;/* from registry_priv */ s32 hw_decrypted;/* if the rx packets is hw_decrypted==false,i