From nobody Thu Apr 2 16:36:54 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5D7B0C54EE9 for ; Thu, 22 Sep 2022 12:23:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231486AbiIVMXt (ORCPT ); Thu, 22 Sep 2022 08:23:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231404AbiIVMXq (ORCPT ); Thu, 22 Sep 2022 08:23:46 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BF51E62F0 for ; Thu, 22 Sep 2022 05:23:45 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id c198so9076587pfc.13 for ; Thu, 22 Sep 2022 05:23:45 -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; bh=5Tt/tIulRoph59HSsZcBGgumIsznklodaysHOlPKr0k=; b=SHInNbWb1WVa2bFi0BWWcCO9YTvKmcxoR2gf/VzD+jcZKWniKd86SSeAreuNN2ojx0 MzW/xUKPaZ8dyuBUDPO2PI1jtaaM+CiT9cld5WfLph0gRNCOZE7CVq/RMXBO4zrK2z3z pVteUH2vNxH9p3v9IXUCvUcxUJW1+B4OAvbUKhER/muR5uUIaOgcZwpB3dD6NOz6G46N 64Hi1NknmjMBoHgFgD0su9YCYFmGbp7gRHHL3Yv1rtU+GgyI2LIIRUlgD6A4J4Faf3v0 A18O7yiWPLptzOk7J9Twpp9g9Eho7Y+a8+GGy8wPI+lXVV0AuqblHneur5I3Be/KzYm0 hkJw== 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; bh=5Tt/tIulRoph59HSsZcBGgumIsznklodaysHOlPKr0k=; b=art6mA6w3ylGjmPzVLGECzjFQgK9lZeV8uve/4SQDaNSCG/4iUnXbmtzEVHjoFRT3v k212TlyQcs74lcl5ovINJse3GZcW0Mf3b1rj+fe40dOsJGAcpnJc2efy0LCw7Qtje70A ECtJ2tvgcOnATFGYlUb2kkls1F/7LGVzmZVQZ0HioQKf2b1YCNDCCKvSg0GKTzr1In6S QTIE0JoaEv0wPQH5UytsedLOlfWbLscgIlN15tUimkztYK51BEWNpB/penmDZRXgkq75 agvj2TEipwNbTQz2dCWumwFuHgaR3XPxXPcvuB5nd1wv8nwH3SQg2NzZAnSOMo2La/QW WFrQ== X-Gm-Message-State: ACrzQf1Z2SpZlWJlt5vnht9Rp+PVE9IypC2UISyRt24F3QOfO1a9hhhn 9D9pZYqJc/GzwKOT3K3gV4M= X-Google-Smtp-Source: AMsMyM4h0vR2uMnhsJ308Tg16YNjL0RW8t2PDnG1Jp7GaGAZZheN2eABv73SHU5TTd/4MRklxe73sA== X-Received: by 2002:a05:6a00:238c:b0:544:c42d:8a67 with SMTP id f12-20020a056a00238c00b00544c42d8a67mr3363687pfc.21.1663849424696; Thu, 22 Sep 2022 05:23:44 -0700 (PDT) Received: from uftrace.. ([14.5.161.231]) by smtp.gmail.com with ESMTPSA id a8-20020a170902900800b00178acc7ef16sm3942901plp.253.2022.09.22.05.23.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Sep 2022 05:23:44 -0700 (PDT) From: Kang Minchul To: Greg Kroah-Hartman Cc: Johannes Berg , Veerendranath Jakkam , GUO Zihua , Hannes Braun , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Kang Minchul Subject: [PATCH 2/4] staging: rtl8723bs: Relocate constant on the right side of test Date: Thu, 22 Sep 2022 21:23:08 +0900 Message-Id: <20220922122310.3379711-3-tegongkang@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220922122310.3379711-1-tegongkang@gmail.com> References: <20220922122310.3379711-1-tegongkang@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" This patch fixes following warning generated by checkpatch: WARNING: Comparisons should place the constant on the right side of the t= est Signed-off-by: Kang Minchul --- drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c b/drivers/st= aging/rtl8723bs/os_dep/ioctl_cfg80211.c index 2c6f4b5ab101..b66e8789885c 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c @@ -1066,7 +1066,7 @@ static int cfg80211_rtw_change_iface(struct wiphy *wi= phy, } } =20 - if (_FAIL =3D=3D rtw_pwr_wakeup(padapter)) { + if (rtw_pwr_wakeup(padapter) =3D=3D _FAIL) { ret =3D -EPERM; goto exit; } @@ -1240,7 +1240,7 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy } =20 rtw_ps_deny(padapter, PS_DENY_SCAN); - if (_FAIL =3D=3D rtw_pwr_wakeup(padapter)) { + if (rtw_pwr_wakeup(padapter) =3D=3D _FAIL) { need_indicate_scan_done =3D true; goto check_need_indicate_scan_done; } @@ -1583,7 +1583,7 @@ static int cfg80211_rtw_join_ibss(struct wiphy *wiphy= , struct net_device *ndev, struct mlme_priv *pmlmepriv =3D &padapter->mlmepriv; int ret =3D 0; =20 - if (_FAIL =3D=3D rtw_pwr_wakeup(padapter)) { + if (rtw_pwr_wakeup(padapter) =3D=3D _FAIL) { ret =3D -EPERM; goto exit; } @@ -1674,7 +1674,7 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, = struct net_device *ndev, } =20 rtw_ps_deny(padapter, PS_DENY_JOIN); - if (_FAIL =3D=3D rtw_pwr_wakeup(padapter)) { + if (rtw_pwr_wakeup(padapter) =3D=3D _FAIL) { ret =3D -EPERM; goto exit; } @@ -2468,7 +2468,7 @@ static int cfg80211_rtw_dump_station(struct wiphy *wi= phy, struct net_device *nde spin_lock_bh(&pstapriv->asoc_list_lock); psta =3D rtw_sta_info_get_by_idx(idx, pstapriv); spin_unlock_bh(&pstapriv->asoc_list_lock); - if (NULL =3D=3D psta) { + if (psta =3D=3D NULL) { ret =3D -ENOENT; goto exit; } @@ -2603,7 +2603,7 @@ static int cfg80211_rtw_mgmt_tx(struct wiphy *wiphy, goto exit; =20 rtw_ps_deny(padapter, PS_DENY_MGNT_TX); - if (_FAIL =3D=3D rtw_pwr_wakeup(padapter)) { + if (rtw_pwr_wakeup(padapter) =3D=3D _FAIL) { ret =3D -EFAULT; goto cancel_ps_deny; } --=20 2.34.1