Skip to contentSkip to conversation

staging: rtl8192e: move logical continuation to previous line

PATCH Superseded Santha Meena Ramamoorthy 2 participants 2 messages Feb 28, 2018 Staging

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rtl8192e: move logical continuation to previous line

Move logical continuation '&&' to the previous line to conform to the Linux kernel coding style. Issue found using checkpatch.

---
 drivers/staging/rtl8192e/rtllib_rx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8192e/rtllib_rx.c +2 -2
index 30f72d2..22f7e7fd 100644
@@ -2644,8 +2644,8 @@ static inline void rtllib_process_probe_response(
 	   (network->ssid_len ? 1 : 0))) {
 		update_network(ieee, &ieee->current_network, network);
 		if ((ieee->current_network.mode == IEEE_N_24G ||
-		     ieee->current_network.mode == IEEE_G)
-		     && ieee->current_network.berp_info_valid) {
+		     ieee->current_network.mode == IEEE_G) &&
+		     ieee->current_network.berp_info_valid) {
 			if (ieee->current_network.erp_value & ERP_UseProtection)
 				ieee->current_network.buseprotection = true;
 			else
Signature · 1 line
2.7.4
#1 lore raw
Quoted 13 lines · Santha Meena Ramamoorthy

Move logical continuation '&&' to the previous line to conform to the Linux kernel coding style. Issue found using checkpatch.

---
 drivers/staging/rtl8192e/rtllib_rx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8192e/rtllib_rx.c +0 -0
index 30f72d2..22f7e7fd 100644

drivers/staging/rtl8192e/rtllib_rx.c static inline void rtllib_process_probe_response( · line 2648

Quoted 7 lines
drivers/staging/rtl8192e/rtllib_rx.c +2 -2
@@ -2644,8 +2644,8 @@ static inline void rtllib_process_probe_response(
 	   (network->ssid_len ? 1 : 0))) {
 		update_network(ieee, &ieee->current_network, network);
 		if ((ieee->current_network.mode == IEEE_N_24G ||
-		     ieee->current_network.mode == IEEE_G)
-		     && ieee->current_network.berp_info_valid) {
+		     ieee->current_network.mode == IEEE_G) &&
+		     ieee->current_network.berp_info_valid) {

It would be nice to move the above line one space to the left, so that it is just to the right of its associated (, which is the outermost one, not the innermost one.

julia

Quoted 13 lines
drivers/staging/rtl8192e/rtllib_rx.c +0 -1
 			if (ieee->current_network.erp_value & ERP_UseProtection)
 				ieee->current_network.buseprotection = true;
 			else
--

2.7.4

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1519844728-18917-1-git-send-email-santhameena13%40gmail.com.
For more options, visit https://groups.google.com/d/optout.