From patchwork Thu Oct 20 02:10:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emily Peri X-Patchwork-Id: 5961 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp22456wrs; Wed, 19 Oct 2022 19:27:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7/8avIXrZAbSqtabHJ3c8SKkuDV5QnfNpMY44jkrFk7p8ZZdYRmi1H7C5jP8LIsx3Sfdqk X-Received: by 2002:a63:5703:0:b0:439:14a8:52b with SMTP id l3-20020a635703000000b0043914a8052bmr9467277pgb.500.1666232857464; Wed, 19 Oct 2022 19:27:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666232857; cv=none; d=google.com; s=arc-20160816; b=ftep56tYTRIcjUPmwQQ90xxkGYViPHG1HJotuJsLN9taB2W4cXEX5+84tAp2AGdkOy Cf5kq93Hn8bJT4XEpLXv38ECSyMBkwuezs88vPX3AMDAic/icZaSqWFIvFtB3EEmKtiU IXHC1TBCxRe5pzB5RwOEIA702k03fY83zEUzPlp76qcuHq6bm1e1kUDpG04XC7I8/bFX M5NrATvejX1PnU6e60fnPdQEJGGz+hTsJqa5kRdYiDiBFjp+n6GOLc+Yq3GGu137SMrP tkE6d8YWWTrb5RXW6PFNVjFBQ85h8MB92Ihvi01Qft2MPX95S1ystKwLiCbanjcH46D5 qIzw== 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=5cxlbEVDeF4plEeh62JkmWpXJNLBpkyMDDpLc8c5MkU=; b=o+q4rjNVWhMwsroqRd9e0iNQEv6xglFRBpF9P+n/Qsz+RuAOOif28dNQqKMWN7eP3H tOddhTBxeQDlDBaG95qHv/zT/VWhu4ZeFZGCOCW9H20OEuU0rwJWQRAG77SFBYarBV+k +bifo0FQnlm3qCo6vvAtQUaTi3N38N64GftCJGZFAYntUr0QlGaSyqBIs0Ip4PMdrh76 NtsBX6YXrTpyUgL4rbeAN3xqI9pMZ3kqcdArjpevvjoUJf09UFysOlkxrk55sY6bClfJ MwiZyuhO9zqHzIkFWwM+vxyFkgR3kTmFWPQ9bB9EobS9ZkrwGEngLvorHA44IX6pc81j 5f/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="i/ZHwd6v"; 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 lk2-20020a17090b33c200b001fb706e96afsi1821262pjb.182.2022.10.19.19.27.25; Wed, 19 Oct 2022 19:27:37 -0700 (PDT) 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="i/ZHwd6v"; 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 S231386AbiJTCOx (ORCPT + 99 others); Wed, 19 Oct 2022 22:14:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231522AbiJTCOr (ORCPT ); Wed, 19 Oct 2022 22:14:47 -0400 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC9F75AC4B for ; Wed, 19 Oct 2022 19:14:44 -0700 (PDT) Received: by mail-pg1-x533.google.com with SMTP id l6so17938121pgu.7 for ; Wed, 19 Oct 2022 19:14:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=5cxlbEVDeF4plEeh62JkmWpXJNLBpkyMDDpLc8c5MkU=; b=i/ZHwd6vtO8tnDAAAmZSyChgftK9wsSwRMKMhPJZoaiURvJ8gEdumCl6AOR1lR5ZKf KiSg3hanIqMlz291v/w0umgZzgIlR2uzUcVqDvwEixzgGYYzFsSMdrIaIuQlV6Rw6F53 xPstk3O+7bTDGXwmtBKvBDzmThnbs3TbXKwf927+rJ53uQ2sN/9sRQUSqFF2vlWe+TW0 IDpScgosPWp7njzSoz9BBlkhTkXfAIyb7j0ZGWvQir9/DCt8HA9tw0YwQ958YU3pyPk+ x00xiEredWYJvKcyy8BxPhMoxSrwqcywKSGxXYxgemgV3tJp8+lcglLt5p1gphgCPvMM Rldw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=5cxlbEVDeF4plEeh62JkmWpXJNLBpkyMDDpLc8c5MkU=; b=x+OZ7E0piVGC7n3949j0yuM4Q3BHCgGOVyoHooH2TZsqZjBRprLZx0W/hz6ETCmFAq om+kJhDEIpSaYI603HNmXA2E0e5UbMk793RNZJ3mAetduYDiIZKXZU6eagm5zQv11IUr FS6ngxyTX3B0d/h6lbALwrZqzV2QC1GQo+LNYVr0tZnhIpuKyQQo86hmvLyVbPDZ8wwS Pk3uWJ+ru4eQwm0IdVeKVEMHrtMe4uqJW82qFJMc4RTSp+dp63Og9RDOUj8R/N1059Sd UvUbFfh/UJci5wH5kgvzq4kWnbqb5qA10tQ2KRVUTQ/ASJbQqAXiyTHcQmJXgBMi0UZD kNxg== X-Gm-Message-State: ACrzQf3eVr6VMQ0fJ2zkCwi7tUXFA9eDyxH222HNnkSiBMntny72TCf+ fHFppof6+iD6Gy8ArAc3bfU= X-Received: by 2002:a63:2c8:0:b0:46e:9da9:8083 with SMTP id 191-20020a6302c8000000b0046e9da98083mr456343pgc.186.1666232083946; Wed, 19 Oct 2022 19:14:43 -0700 (PDT) Received: from localhost.localdomain (192-184-163-51.fiber.dynamic.sonic.net. [192.184.163.51]) by smtp.gmail.com with ESMTPSA id n18-20020aa79852000000b005631af4ece2sm11942936pfq.182.2022.10.19.19.14.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Oct 2022 19:14:43 -0700 (PDT) From: Emily Peri To: gregkh@linuxfoundation.org, outreachy@lists.linux.dev, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Emily Peri Subject: [PATCH 3/3] staging: rtl8723bs: remove unnecessary parenthesis Date: Wed, 19 Oct 2022 19:10:53 -0700 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, 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?1747171784860668117?= X-GMAIL-MSGID: =?utf-8?q?1747171784860668117?= Remove extra parenthesis in conditional statement in rtw_ioctl_set. Issue found by checkpatch. Signed-off-by: Emily Peri --- drivers/staging/rtl8723bs/core/rtw_ioctl_set.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c b/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c index ac957035bf1a..32194dabd587 100644 --- a/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c +++ b/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c @@ -160,7 +160,7 @@ u8 rtw_set_802_11_ssid(struct adapter *padapter, struct ndis_802_11_ssid *ssid) if (check_fwstate(pmlmepriv, _FW_LINKED|WIFI_ADHOC_MASTER_STATE) == true) { if ((pmlmepriv->assoc_ssid.ssid_length == ssid->ssid_length) && (!memcmp(&pmlmepriv->assoc_ssid.ssid, ssid->ssid, ssid->ssid_length))) { - if ((check_fwstate(pmlmepriv, WIFI_STATION_STATE) == false)) { + if (check_fwstate(pmlmepriv, WIFI_STATION_STATE) == false) { if (rtw_is_same_ibss(padapter, pnetwork) == false) { /* if in WIFI_ADHOC_MASTER_STATE | WIFI_ADHOC_STATE, create bss or rejoin again */ rtw_disassoc_cmd(padapter, 0, true);