Skip to contentSkip to conversation

wireless: ralink: rt2x00: Remove unnecessary spaces

PATCH In review [email protected] 2 participants 2 messages Jul 21, 2023 1 message not in the archive Ralink RT2X00 wireless LAN driver

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 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 ')'

---
 drivers/net/wireless/ralink/rt2x00/rt2x00reg.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/ralink/rt2x00/rt2x00reg.h +2 -2
index ffe802b..0e5094a 100644
@@ -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))

/*

#2 lore raw
Quoted 11 lines · [email protected] writes:

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 ')'

Quoted 1 line

I have seen a lot of checkpatch fixes from you. We do not really like random checkpatch fixes from new people, too much work for very little gain. From looking at the title it's clear that you have not even read our wireless specific instructions from our wiki (see link below).

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches