Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp432331pxb; Sat, 10 Apr 2021 07:26:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytSjerbxswzQpgRzIwMjjY1CL8Md+egeUOhYgi2V6/IySx/55ZMzbOtVdc01A5MjLp0ebu X-Received: by 2002:a17:906:4a84:: with SMTP id x4mr16386826eju.506.1618064760911; Sat, 10 Apr 2021 07:26:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618064760; cv=none; d=google.com; s=arc-20160816; b=iRSCv1U/cm+dVUOZk2hGXdS3eiY+cFFuLvh6Ew3d02/VTr4V3ng5+Nrd5BhWDe42Xa qrhnFijJJeMPJdZhjwbOdYNGCL+nLQXSzcMedKFlU9/7PPZM7HWUqzVnqir/GOrvtRut 6GwvlKSzoQjhVfclbOtNxbSw4GORDt2Bj3D0H4ziciVDBJbtzFhoNmiQMGYv1VluHAoe wzEFs3QefqvIP0poTZ7NzHsPAqMxFjvTsDOPxa3lPLhQz7ywQ1ukicxEx62AGCo1ZZ4P pFIqRolv6iIna8t3WECPetXdFhPnoQycQ/YC7slw480+7gpHD/d+kGRwUYcauRtw7ROZ ZRXg== 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=70up8zMFHK98mBqYLU707HfdW2OG0jaycv4htN1s4V0=; b=jE/JZ0xEe+vLEd0IuolDZwP5HAgI+Ogj6OJ1fp9gdl2bQc8xNSuDKyhdYKCmIM68Iv 3V25BP15dGPYVPliyHect8H3GgqTV8WftF0Q/WUS3MYDi0fMlPZeyU099vfGMQE2RFFm seKs70HhKhVAUxuZpnRufPw23q/qpZxrFTCKV/LFxaXGodUFonynJTHYSK1ouosGKxWb cHF3jxdrobGrNr+q2XjACyEiHv6vnTvXJVQnFGPYYFHtStYjb5XmG9P0QQJwq9k6gYpM 3cff+8qPZ5jQQfUTEeeurV4SQ5aYd03lnp3eRNKFwrbySqYUJmxN04ldlGWK9eNmQLTe VEXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UxoIFR1b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n18si3957251ejg.224.2021.04.10.07.25.38; Sat, 10 Apr 2021 07:26:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UxoIFR1b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S234941AbhDJOWJ (ORCPT + 99 others); Sat, 10 Apr 2021 10:22:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234944AbhDJOVW (ORCPT ); Sat, 10 Apr 2021 10:21:22 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40758C061344 for ; Sat, 10 Apr 2021 07:21:07 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id n2so13020198ejy.7 for ; Sat, 10 Apr 2021 07:21:07 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=70up8zMFHK98mBqYLU707HfdW2OG0jaycv4htN1s4V0=; b=UxoIFR1bhd8vbmQC86UCMEjaVHHbGAuG3zr4mCh3EfoQ0v0Wf9Q+pZV91UBqBHlrPT gSs4NNbuIR4UQZV9RoFLtlBvuoEDXZor+542UHpQ0B6ziCfDxQOyjHOIJAqQqcU1Z+sj bi2ZUUvePoY4dwv/cufJ7awY+nQDdpFmQpbEXJBaV7viPMxzKX+j+teu01H8VqLgJ5PI tOMNP9eRWE1LYeZ7OqoyLGrDJp4rAipDVABS5Bx7ppjWEbSUnWAnDkUEhGDfcGZMTEO8 gSP3DSPE2tH3cVsKYSEARJbhaiFoesH8x2sUcIzugNuF7CyDDPMPbtG0uHtNlNU59+uo CTNA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=70up8zMFHK98mBqYLU707HfdW2OG0jaycv4htN1s4V0=; b=rTRR4eyJrSAJleT2rC7j+1af3AS5P7z1wY6Oh+Mj0HTjAz/Tfw17V5OhsmM7JVIMtx nyf5Hxazs56tfyhs0gtB4HEm0wmiAM+WUYEYG5mC/E8yzVfMNCr4qpazic89VdcSklpD IHESzs3TJ05R8flDszguLePJg9kXta6GuARAefYGOeovGCXlFZ72vpgZkkY4H13oGaQ6 /uICyxSOUHNhGKSHU64yNzpj9WJLPIiWzI7Af81iJaNDBSkkn/C3aFY/D1cPQaEyJnry cZ9brk70iUORvkaS5hHqMCLWqR23VNu6Mn5RzWJDMBBZgFaElfFFJW5BI0R0/nHMA4TW /l4A== X-Gm-Message-State: AOAM531ObYzCcdN11x6KCinB0bHA1tEfwQeBSqiq7mkNY0iHyPMMRcca QTnir55P1zLhXdGEdwGMImdGPv3YOA3rwg== X-Received: by 2002:a17:906:4015:: with SMTP id v21mr20929790ejj.433.1618064465775; Sat, 10 Apr 2021 07:21:05 -0700 (PDT) Received: from agape ([5.171.81.28]) by smtp.gmail.com with ESMTPSA id gb22sm2686324ejc.78.2021.04.10.07.21.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Apr 2021 07:21:05 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 16/25] staging: rtl8723bs: put spaces around operators Date: Sat, 10 Apr 2021 16:20:29 +0200 Message-Id: <65b7cf4b1ae3cea25a316f3c9f56c697ee7be8af.1618064274.git.fabioaiuto83@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fix following post-commit hook checkpatch issues: CHECK: spaces preferred around that '+' (ctx:VxV) 87: FILE: drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c:746: + if ((_offset+_size_byte) > EFUSE_MAX_MAP_LEN) -- CHECK: spaces preferred around that '+' (ctx:VxV) 105: FILE: drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c:847: + if ((_offset+_size_byte) > EFUSE_BT_MAP_LEN) -- CHECK: spaces preferred around that '-' (ctx:VxV) 133: FILE: drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c:906: + if ((eFuse_Addr-1) < total) -- CHECK: spaces preferred around that '|' (ctx:VxV) 392: FILE: drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:2485: + if (check_fwstate(pmlmepriv, (_FW_LINKED|WIFI_AP_STATE)) != true) Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 6 +++--- drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c index 44cb4c5be501..00115a0c70be 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c @@ -743,7 +743,7 @@ static void hal_ReadEFuse_WiFi( /* */ /* Do NOT excess total size of EFuse table. Added by Roger, 2008.11.10. */ /* */ - if ((_offset+_size_byte) > EFUSE_MAX_MAP_LEN) + if ((_offset + _size_byte) > EFUSE_MAX_MAP_LEN) return; efuseTbl = rtw_malloc(EFUSE_MAX_MAP_LEN); @@ -844,7 +844,7 @@ static void hal_ReadEFuse_BT( /* */ /* Do NOT excess total size of EFuse table. Added by Roger, 2008.11.10. */ /* */ - if ((_offset+_size_byte) > EFUSE_BT_MAP_LEN) + if ((_offset + _size_byte) > EFUSE_BT_MAP_LEN) return; efuseTbl = rtw_malloc(EFUSE_BT_MAP_LEN); @@ -903,7 +903,7 @@ static void hal_ReadEFuse_BT( } } - if ((eFuse_Addr-1) < total) + if ((eFuse_Addr - 1) < total) break; } diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c index 601a16074ee3..54c65c125c8c 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c @@ -2482,7 +2482,7 @@ static int cfg80211_rtw_del_station(struct wiphy *wiphy, struct net_device *ndev struct sta_priv *pstapriv = &padapter->stapriv; const u8 *mac = params->mac; - if (check_fwstate(pmlmepriv, (_FW_LINKED|WIFI_AP_STATE)) != true) + if (check_fwstate(pmlmepriv, (_FW_LINKED | WIFI_AP_STATE)) != true) return -EINVAL; if (!mac) { -- 2.20.1