Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1441404pxf; Fri, 2 Apr 2021 10:31:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxm0upYg3OL7IkXycEHbobXPxfZan5gKxp7I5/tnHowroA8qQMD5pO/Wh/Im7aK62zbFw4Y X-Received: by 2002:a17:906:9888:: with SMTP id zc8mr15379219ejb.310.1617384701634; Fri, 02 Apr 2021 10:31:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617384701; cv=none; d=google.com; s=arc-20160816; b=JdRh2faHt/I6fnrcBIZlaoNnh5VVma8AWU7XjBJ4a54rP6SHVT3r4xqLtnfqzbH+FH s74ZYr9cmtcpaCBcxzYDiFTwUzrbdLZuDuid63wXDUMRwQbC1wwHMU0zawAfDzRLvT8u BYxTewf9VYPEZv7e4UWQxVdWf5MVJN24TShppx7EHIvQCW6CIegdqSFAXFLZmsqyfcXn vpqncBhclOXzGusM5B/IziWWg7fn0RrBiXUxxkbg3g0Ug+5DgjdXYJBfW0ziAMbEaj8C 66NwQRrisHvJGoXzRLINAft/VZFV25+hMvRGev3f5v+uPKHi7W7NH3ueQ5IUGuiUgLiX Q3OA== 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=YIXmba9GZGAqIQhah5BMvewcGrBpfMrXUBmt8lWw17w=; b=r5JpgeTkrIIgtMe5J3Z94DAmD+UXZ8sOtBYo4iJMrX3ThaqP68aMQ8sThRuc4SwQ4M odlZW+UOz9CB78yr5BgLNfvENSDRZI6c8ealn53Qc0L3G6KwM+9TrlnXyQA2kVlzavry EWxy7SIaOZNKFBLgqbKHNQcWkolhk26I7jA+ACQ9Sgvox1R0nfK4bGuKuJaEfAsKrAjo IVCM3XiqIJNZ/GXIKYoaoca7D+FZnJef2nrfD0ngrwlcmWKeNYpmtTxm2GxQAxbw3yBR HJJomxHwEpL+qD2v5KY4+EVAhimJ+XLBudz8kHicZTvC1wCTG8C5vy439/AlhIuRS6e8 bOqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A3rCmKO2; 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 lu7si6778853ejb.27.2021.04.02.10.31.19; Fri, 02 Apr 2021 10:31:41 -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=A3rCmKO2; 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 S235357AbhDBRan (ORCPT + 99 others); Fri, 2 Apr 2021 13:30:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234652AbhDBRa2 (ORCPT ); Fri, 2 Apr 2021 13:30:28 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7303EC06178C for ; Fri, 2 Apr 2021 10:30:26 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id f22-20020a7bc8d60000b029010c024a1407so4621435wml.2 for ; Fri, 02 Apr 2021 10:30:26 -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=YIXmba9GZGAqIQhah5BMvewcGrBpfMrXUBmt8lWw17w=; b=A3rCmKO2FJGVEjrpXsrA4PoCCEKBWX6ejliH2nlT6tG7kE8aC9+Q8AXE56fOBWZ5+E JYzPkhoo4dt2IrUREcd6K2AlfBMh7J2Z3AMaUUxMCxPXsCaqKEYe2UIAb+aiSp/hxgYs NwyVIKGgkzAdKPbb0R0VH1KOGxoBm3SU/wO416iDmU9sOLk8h+TM/S6+CxV3e0u1VJaf QZXQX7J9ytaQQp0Ugh0+mc3DTiBcO9kPiaXcZybKu4ZfPFa3M/IEu+pzzqcWwyjeyaUb 3evbORs1VlQXE/oVYVbpk+czlTe71NKuaqVj34EuLnJg4aRX8PMoHojHEij/g9X05igC dZoA== 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=YIXmba9GZGAqIQhah5BMvewcGrBpfMrXUBmt8lWw17w=; b=Qb2qzw77Tm2SX2Ws8lIrOtcHmXkt+i+W0JO+amdvi28HSD5xi9AvOiXfYkgg+kOvXf XQObmLw3oG8Zh5glgWZSoASedNXbo5P1FjehmpJ2dkKUqS+kJP3WgrKBvqrEnY0koJtL erl/1/kSYM7XQTHEbNEWXqkPvEJHlGQ1Iz/OX3NoXx72lU3WNFjOZfL6hh/psrml9127 P95yWcK7ZZ6rNvo6T+mEpAy5dAEp6sblR+qsOplWoPBujvLIdct6ukRPurw+ZkAnIZcr 2K6GUGcIn9b9aLucG6VOB8ry6qD0vl2eQhnigvJq3wpbeSWFULIK40stiKDKzVHax9x9 pMNQ== X-Gm-Message-State: AOAM5326zDpI3XSSATXIe/fP4hzh8W7TnbxgcsmYxcWyXvG5/n6rQi5x 889trnDJq3qyN6uekQRQ/cw= X-Received: by 2002:a05:600c:2e43:: with SMTP id q3mr4104128wmf.68.1617384625287; Fri, 02 Apr 2021 10:30:25 -0700 (PDT) Received: from agape ([5.171.81.4]) by smtp.gmail.com with ESMTPSA id p10sm15635935wrw.33.2021.04.02.10.30.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Apr 2021 10:30:25 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: dan.carpenter@oracle.com, joe@perches.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Fabio Aiuto Subject: [PATCH v2 05/30] staging: rtl8723bs: fix spaces around operator issues Date: Fri, 2 Apr 2021 19:29:47 +0200 Message-Id: <501f33cd47ffaf9f7b41dd01776516f333e5de0a.1617384172.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 the following post commit hook check issues: CHECK: spaces preferred around that '-' (ctx:VxV) 25: FILE: drivers/staging/rtl8723bs/core/rtw_security.c:729: + if (crc[3] != payload[length-1] || crc[2] != payload[length-2] || ^ CHECK: spaces preferred around that '-' (ctx:VxV) 25: FILE: drivers/staging/rtl8723bs/core/rtw_security.c:729: + if (crc[3] != payload[length-1] || crc[2] != payload[length-2] || ^ CHECK: spaces preferred around that '-' (ctx:VxV) 26: FILE: drivers/staging/rtl8723bs/core/rtw_security.c:730: + crc[1] != payload[length-3] || crc[0] != payload[length-4]) ^ CHECK: spaces preferred around that '-' (ctx:VxV) 26: FILE: drivers/staging/rtl8723bs/core/rtw_security.c:730: + crc[1] != payload[length-3] || crc[0] != payload[length-4]) ^ Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_security.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_security.c b/drivers/staging/rtl8723bs/core/rtw_security.c index 663a8ea199ee..6c74c0444abc 100644 --- a/drivers/staging/rtl8723bs/core/rtw_security.c +++ b/drivers/staging/rtl8723bs/core/rtw_security.c @@ -726,8 +726,8 @@ u32 rtw_tkip_decrypt(struct adapter *padapter, u8 *precvframe) *((u32 *)crc) = le32_to_cpu(getcrc32(payload, length-4)); - if (crc[3] != payload[length-1] || crc[2] != payload[length-2] || - crc[1] != payload[length-3] || crc[0] != payload[length-4]) + if (crc[3] != payload[length - 1] || crc[2] != payload[length - 2] || + crc[1] != payload[length - 3] || crc[0] != payload[length - 4]) res = _FAIL; } else { res = _FAIL; -- 2.20.1