lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <c0f897b57f6b05d26f2c006154fa15ed@208suo.com>
Date:   Fri, 21 Jul 2023 17:37:59 +0800
From:   hanyu001@...suo.com
To:     stf_xl@...pl, helmut.schaa@...glemail.com, kvalo@...nel.org
Cc:     linux-wireless@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] wireless: ralink: rt2x00: Remove unnecessary spaces

Fix checkpatch warnings:

./drivers/net/wireless/ralink/rt2x00/rt2x00reg.h:168: ERROR: space 
prohibited after that open parenthesis '('
./drivers/net/wireless/ralink/rt2x00/rt2x00reg.h:168: ERROR: space 
prohibited before that close parenthesis ')'
./drivers/net/wireless/ralink/rt2x00/rt2x00reg.h:169: ERROR: space 
prohibited after that open parenthesis '('
./drivers/net/wireless/ralink/rt2x00/rt2x00reg.h:169: ERROR: space 
prohibited before that close parenthesis ')'

Signed-off-by: Yu Han <hanyu001@...suo.com>
---
  drivers/net/wireless/ralink/rt2x00/rt2x00reg.h | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/ralink/rt2x00/rt2x00reg.h 
b/drivers/net/wireless/ralink/rt2x00/rt2x00reg.h
index ffe802b..0e5094a 100644
--- a/drivers/net/wireless/ralink/rt2x00/rt2x00reg.h
+++ b/drivers/net/wireless/ralink/rt2x00/rt2x00reg.h
@@ -165,8 +165,8 @@ struct rt2x00_field32 {
   * Note that we cannot use the is_power_of_2() function since this
   * check must be done at compile-time.
   */
-#define is_power_of_two(x)    ( !((x) & ((x)-1)) )
-#define low_bit_mask(x)        ( ((x)-1) & ~(x) )
+#define is_power_of_two(x)    (!((x) & ((x)-1)))
+#define low_bit_mask(x)        (((x)-1) & ~(x))
  #define is_valid_mask(x)    is_power_of_two(1LU + (x) + 
low_bit_mask(x))

  /*

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ