Skip to contentSkip to conversation

staging: wfx: remove line over 80 characters

PATCH In review Payal Kshirsagar 2 participants 2 messages Mar 8, 2020 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: wfx: remove line over 80 characters

Remove line over 80 characters.

---
 drivers/staging/wfx/data_tx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/wfx/data_tx.c +2 -1
index 20f4740734f2..8b0c52392319 100644
@@ -224,7 +224,8 @@ static int wfx_tx_policy_upload(struct wfx_vif *wvif)
 		spin_lock_bh(&wvif->tx_policy_cache.lock);
 		for (i = 0; i < HIF_MIB_NUM_TX_RATE_RETRY_POLICIES; ++i)
 			if (!policies[i].uploaded &&
-			    memzcmp(policies[i].rates, sizeof(policies[i].rates)))
+			    memzcmp(policies[i].rates,
+			    sizeof(policies[i].rates)))
 				break;
 		if (i < HIF_MIB_NUM_TX_RATE_RETRY_POLICIES) {
 			policies[i].uploaded = 1;
Signature · 1 line
2.17.1
#1 lore raw
Quoted 12 lines · Payal Kshirsagar

Remove line over 80 characters.

---
 drivers/staging/wfx/data_tx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/wfx/data_tx.c +0 -0
index 20f4740734f2..8b0c52392319 100644

drivers/staging/wfx/data_tx.c static int wfx_tx_policy_upload(struct wfx_vif *wvif) · line 228

Quoted 6 lines
drivers/staging/wfx/data_tx.c +2 -1
@@ -224,7 +224,8 @@ static int wfx_tx_policy_upload(struct wfx_vif *wvif)
 		spin_lock_bh(&wvif->tx_policy_cache.lock);
 		for (i = 0; i < HIF_MIB_NUM_TX_RATE_RETRY_POLICIES; ++i)
 			if (!policies[i].uploaded &&
-			    memzcmp(policies[i].rates, sizeof(policies[i].rates)))
+			    memzcmp(policies[i].rates,
+			    sizeof(policies[i].rates)))

The sizeof call is the second argument to memzcmp, so it should be indented more to reflect that.

julia

Quoted 11 lines
drivers/staging/wfx/data_tx.c +0 -1
 				break;
 		if (i < HIF_MIB_NUM_TX_RATE_RETRY_POLICIES) {
 			policies[i].uploaded = 1;
--

2.17.1

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20200308184743.5639-1-payalskshirsagar1234%40gmail.com.