Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2594428pxf; Sun, 4 Apr 2021 07:11:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVj4eHA7PKpOzNfN65IYOgaFbbRGIM01LtaykaXdV6JaGpXS/SD29K+Exg14SvaKAXiEIY X-Received: by 2002:a05:6402:17eb:: with SMTP id t11mr379152edy.80.1617545482822; Sun, 04 Apr 2021 07:11:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617545482; cv=none; d=google.com; s=arc-20160816; b=VWTOIhp9vRin+TUxDc0YEi45C/6AIazl6S+X8XyGMdIFRekzSgpsDCEHuLnJNvZnJq 8Ek6bb3XQ0jJ7FAjzfPwbQ0bLr+hvZpnLxYxlkSDE65ZLWASt9Ug8PskG5GvG5GaMAWy Z1DoB4qQd6/9uOIb31yziBGslnekEs+gZCTMejmMpEO0vlhGeGO5tnCVTK2V7uxunNBM DLx1Rve5p3z2b6g7FywXmL/FHIXfvDAiVALnURpbl8hMrtVEK3QUyj/w/cnYUpZOrHh4 MwVUu1gUdvOX7Bc0sX5LB+miAkLEJzx4BVRPSQEtsO63PkBQM+vkyX88R3ZIkhJihjOP ajNg== 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=SpB21ddvVB478zlEeuyOklnuQn3Gxt8QZHrAoTlf3oo=; b=j2aV/607D4RuNzGljHoyY8+9SSLDemWqENVds+4eXBZF7Rt4JJQz4gHGjwfwTazXHM oMTLi9oPx4d8fJAN5EuAsAPlNAAlccg5TAAdFXQMwxc6zVDeYEFNPSDb98IfBF0RZGvC z0sWdSSH22MmYlZHV8AVdaghmgZk9kTjCC7gRPP5jypzS1fhjpeiWbgmwyTr6Y278Z+H fKC22N+KF4VD2nd4qSrBC0/yIK09kCnlXSaxtiAZDOrOwRuKGliUiDWcugweko5mPmuv SOxKQyFsUcOcSZOsehaTdJt3AWWrVRsmdR1YmMOTi2/Es4DcekD4JWw4BxksLZ4OGXHH hLWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HctwjQkH; 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 h12si12855929ejx.570.2021.04.04.07.11.00; Sun, 04 Apr 2021 07:11:22 -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=HctwjQkH; 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 S231221AbhDDOKQ (ORCPT + 99 others); Sun, 4 Apr 2021 10:10:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231145AbhDDOKE (ORCPT ); Sun, 4 Apr 2021 10:10:04 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15A81C061788 for ; Sun, 4 Apr 2021 07:10:00 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id 12so4595117wmf.5 for ; Sun, 04 Apr 2021 07:10:00 -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=SpB21ddvVB478zlEeuyOklnuQn3Gxt8QZHrAoTlf3oo=; b=HctwjQkHD+k+CMCkTVYI/r1VtxPV/Dl8a+E7V5gjsSxwQTLlAA2RNaWAtOUZcfskOe 8s107K+GenCYTcWFuiZZdFQns2X35RlGiDgQek4OWDkQj1kIWTpPa5ml9cchEoizbcTG GSyXx4phqUxahIHTioI6QfKCwiuOTgVz4uP9Y1qeK313yZsIPCHzzw3/TOnc1AyOeNfg mVGaDQyqbLn/lqacVeIqfu5gz84xmTEifUkJYpp8eENC7RcS9fzNPJkpVAztLjh8LKGf AOsyqGfdFDBNUB7Z/Q0IhsckV0UrmLl5hsJoSg3yRbjPWG05oWFKThQR/F/zsDn2cbR7 LTPA== 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=SpB21ddvVB478zlEeuyOklnuQn3Gxt8QZHrAoTlf3oo=; b=HbsCbrI2aLiNe3JbnaKAfmZEBnPbTMUe7JmywfQjJn1FfsZyUspri7eWW+Bzuei83j uf6tretHxwgjY1WSTUGDCuQkDdA0QoCQebPnssLNW79L3uvfUYriTSx0gGslkx/wHWru U1VmFEDdJdQ9bid34zvKtjoHMZMx5aYPF1n4jPaaadru2n3grMMvkRwzzpp53BZDRdjN kXvccl9rsKkxpgOy5Ag3F/fEQv0PlW8T6lXauQluPJyWX6lxYEYRnfL9guiy0oPs+c7c II7I8raiElfalrWkrdIYL57B+2XSpSbhamHee3QGT/TId+nlze4nk1sZAp5tNDykkAVG v+CA== X-Gm-Message-State: AOAM5339DFzriMeN8Tyv5auZBalZ8uESYEGnNHHN/KzAkeFZd7SoKrie Yz2/1oibP+65MWplYSXqxh3/TmpsZw7ZIg== X-Received: by 2002:a7b:c841:: with SMTP id c1mr21219632wml.123.1617545398905; Sun, 04 Apr 2021 07:09:58 -0700 (PDT) Received: from agape ([5.171.81.112]) by smtp.gmail.com with ESMTPSA id l5sm20022342wmh.0.2021.04.04.07.09.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Apr 2021 07:09:58 -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 v4 05/30] staging: rtl8723bs: fix spaces around operator issues in core/rtw_security.c Date: Sun, 4 Apr 2021 16:09:21 +0200 Message-Id: <9143a02ae6959d4deae6c22bdba42041bf6484a2.1617545239.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 checkpatch 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