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-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240918191959.51539-7-dominik.karol.piatkowski@protonmail.com>
Date: Wed, 18 Sep 2024 19:21:15 +0000
From: Dominik Karol Piątkowski <dominik.karol.piatkowski@...tonmail.com>
To: philipp.g.hortmann@...il.com, gregkh@...uxfoundation.org
Cc: linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org, Dominik Karol Piątkowski <dominik.karol.piatkowski@...tonmail.com>
Subject: [PATCH 06/14] staging: vt6655: s_uGetDataDuration: Rename bNeedAck parameter

This patch renames bNeedAck to need_ack in s_uGetDataDuration function
in order to avoid using camel case.

Signed-off-by: Dominik Karol Piątkowski <dominik.karol.piatkowski@...tonmail.com>
---
 drivers/staging/vt6655/rxtx.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c
index 7dd57d2e2831..72837898ea29 100644
--- a/drivers/staging/vt6655/rxtx.c
+++ b/drivers/staging/vt6655/rxtx.c
@@ -234,7 +234,7 @@ s_uGetDataDuration(
 	unsigned int frame_length,
 	unsigned char pkt_type,
 	unsigned short rate,
-	bool bNeedAck,
+	bool need_ack,
 	unsigned int uFragIdx,
 	unsigned int cbLastFragmentSize,
 	unsigned int uMACfragNum,
@@ -254,51 +254,51 @@ s_uGetDataDuration(
 
 	switch (dur_type) {
 	case DATADUR_B:    /* DATADUR_B */
-		if (bNeedAck) {
+		if (need_ack) {
 			uAckTime = bb_get_frame_time(priv->preamble_type,
 						     pkt_type, 14,
 						     priv->byTopCCKBasicRate);
 		}
 		/* Non Frag or Last Frag */
 		if ((uMACfragNum == 1) || bLastFrag) {
-			if (!bNeedAck)
+			if (!need_ack)
 				return 0;
 		} else {
 			/* First Frag or Mid Frag */
 			uNextPktTime = s_uGetTxRsvTime(priv, pkt_type,
-						       len, rate, bNeedAck);
+						       len, rate, need_ack);
 		}
 
 		return priv->uSIFS + uAckTime + uNextPktTime;
 
 	case DATADUR_A:    /* DATADUR_A */
-		if (bNeedAck) {
+		if (need_ack) {
 			uAckTime = bb_get_frame_time(priv->preamble_type,
 						     pkt_type, 14,
 						     priv->byTopOFDMBasicRate);
 		}
 		/* Non Frag or Last Frag */
 		if ((uMACfragNum == 1) || bLastFrag) {
-			if (!bNeedAck)
+			if (!need_ack)
 				return 0;
 		} else {
 			/* First Frag or Mid Frag */
 			uNextPktTime = s_uGetTxRsvTime(priv, pkt_type,
-						       len, rate, bNeedAck);
+						       len, rate, need_ack);
 		}
 
 		return priv->uSIFS + uAckTime + uNextPktTime;
 
 	case DATADUR_A_F0:    /* DATADUR_A_F0 */
 	case DATADUR_A_F1:    /* DATADUR_A_F1 */
-		if (bNeedAck) {
+		if (need_ack) {
 			uAckTime = bb_get_frame_time(priv->preamble_type,
 						     pkt_type, 14,
 						     priv->byTopOFDMBasicRate);
 		}
 		/* Non Frag or Last Frag */
 		if ((uMACfragNum == 1) || bLastFrag) {
-			if (!bNeedAck)
+			if (!need_ack)
 				return 0;
 		} else {
 			/* First Frag or Mid Frag */
@@ -315,7 +315,7 @@ s_uGetDataDuration(
 				rate = fb_opt1[FB_RATE0][rate];
 
 			uNextPktTime = s_uGetTxRsvTime(priv, pkt_type,
-						       len, rate, bNeedAck);
+						       len, rate, need_ack);
 		}
 
 		return priv->uSIFS + uAckTime + uNextPktTime;
-- 
2.34.1



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ