aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAyush Tiwari <[email protected]>2024-03-13 15:53:38 +0530
committerGreg Kroah-Hartman <[email protected]>2024-03-25 19:08:04 +0100
commitf119f9e050940070c3da3a7476b1bf7a63c803c4 (patch)
tree4c94e4003be42e62d72dbbc94f0b7ce26d7838f4
parentbf812e0a36f775ea77e4e6455f0b3a1ab1a61961 (diff)
staging: rtl8712: rename tmpVal to avg_val
Rename tmpVal to avg_val in process_link_qual() to reflect the intended use of the variable and conform to the kernel coding style. Signed-off-by: Ayush Tiwari <[email protected]> Reviewed-by: Dan Carpenter <[email protected]> Reviewed-by: Fabio M. De Francesco <[email protected]> Link: https://lore.kernel.org/r/ZfF+qu+CGHlpHrtY@ayush-HP-Pavilion-Gaming-Laptop-15-ec0xxx Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/staging/rtl8712/rtl8712_recv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/rtl8712/rtl8712_recv.c b/drivers/staging/rtl8712/rtl8712_recv.c
index a3c4713c59b3..1fabc5137a4c 100644
--- a/drivers/staging/rtl8712/rtl8712_recv.c
+++ b/drivers/staging/rtl8712/rtl8712_recv.c
@@ -861,7 +861,7 @@ static void query_rx_phy_status(struct _adapter *padapter,
static void process_link_qual(struct _adapter *padapter,
union recv_frame *prframe)
{
- u32 last_evm = 0, tmpVal;
+ u32 last_evm = 0, avg_val;
struct rx_pkt_attrib *pattrib;
struct smooth_rssi_data *sqd = &padapter->recvpriv.signal_qual_data;
@@ -883,8 +883,8 @@ static void process_link_qual(struct _adapter *padapter,
sqd->index = 0;
/* <1> Showed on UI for user, in percentage. */
- tmpVal = sqd->total_val / sqd->total_num;
- padapter->recvpriv.signal = (u8)tmpVal;
+ avg_val = sqd->total_val / sqd->total_num;
+ padapter->recvpriv.signal = (u8)avg_val;
}
}