Skip to contentSkip to conversation

staging: ks7010: rearrange line exceeding 80 characters

PATCH In review Gokce Kuler 2 participants 2 messages Mar 21, 2020 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: ks7010: rearrange line exceeding 80 characters

Moved to the bottom line after == operator for it exceeds 80 character

---
 drivers/staging/ks7010/ks_hostif.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/staging/ks7010/ks_hostif.c +4 -2
index 2666f9e..7ed8300 100644
@@ -1953,8 +1953,10 @@ static void hostif_sme_power_mgmt_set(struct ks_wlan_private *priv)
 		mode = (priv->reg.operation_mode == MODE_INFRASTRUCTURE) ?
 			POWER_SAVE : POWER_ACTIVE;
 		wake_up = 0;
-		receive_dtims = (priv->reg.operation_mode == MODE_INFRASTRUCTURE &&
-				 priv->reg.power_mgmt == POWER_MGMT_SAVE2);
+		receive_dtims = (priv->reg.operation_mode ==
+			       	 MODE_INFRASTRUCTURE &&
+				 priv->reg.power_mgmt ==
+				 POWER_MGMT_SAVE2);
 	}
 
 	hostif_power_mgmt_request(priv, mode, wake_up, receive_dtims);
Signature · 1 line
2.7.4
maintainer
#1 lore raw
Quoted 12 lines · Gokce Kuler

Moved to the bottom line after == operator for it exceeds 80 character

---
 drivers/staging/ks7010/ks_hostif.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/staging/ks7010/ks_hostif.c +0 -0
index 2666f9e..7ed8300 100644

drivers/staging/ks7010/ks_hostif.c static void hostif_sme_power_mgmt_set(struct ks_wlan_private *priv) · line 1959

Quoted 9 lines
drivers/staging/ks7010/ks_hostif.c +4 -2
@@ -1953,8 +1953,10 @@ static void hostif_sme_power_mgmt_set(struct ks_wlan_private *priv)
 		mode = (priv->reg.operation_mode == MODE_INFRASTRUCTURE) ?
 			POWER_SAVE : POWER_ACTIVE;
 		wake_up = 0;
-		receive_dtims = (priv->reg.operation_mode == MODE_INFRASTRUCTURE &&
-				 priv->reg.power_mgmt == POWER_MGMT_SAVE2);
+		receive_dtims = (priv->reg.operation_mode ==
+			       	 MODE_INFRASTRUCTURE &&
+				 priv->reg.power_mgmt ==
+				 POWER_MGMT_SAVE2);

This is now much harder to read and understand, so I woudl just leave the original as-is.

thanks,

greg k-h