[PATCH 2/2] staging: rtl8192e: r8192E_dev.c: Rename btMsr variable

Dominik Karol Piątkowski
2024-09-21T12:22:24Z

This patch renames btMsr to msr in rtl92e_set_reg function in order to
avoid using camel case.

Signed-off-by: Dominik Karol Piątkowski <dominik.karol.piatkowski@protonmail.com>
---
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
index 675e0e263697..db375ba9a223 100644
--- a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
+++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
@@ -52,29 +52,29 @@ void rtl92e_set_reg(struct net_device *dev, u8 variable, u8 *val)
case HW_VAR_MEDIA_STATUS:
{
enum rt_op_mode op_mode = *((enum rt_op_mode *)(val));
- u8 btMsr = rtl92e_readb(dev, MSR);
+ u8 msr = rtl92e_readb(dev, MSR);

- btMsr &= ~MSR_LINK_MASK;
+ msr &= ~MSR_LINK_MASK;

switch (op_mode) {
case RT_OP_MODE_INFRASTRUCTURE:
- btMsr |= MSR_LINK_MANAGED;
+ msr |= MSR_LINK_MANAGED;
break;

case RT_OP_MODE_IBSS:
- btMsr |= MSR_LINK_ADHOC;
+ msr |= MSR_LINK_ADHOC;
break;

case RT_OP_MODE_AP:
- btMsr |= MSR_LINK_MASTER;
+ msr |= MSR_LINK_MASTER;
break;

default:
- btMsr |= MSR_LINK_NONE;
+ msr |= MSR_LINK_NONE;
break;
}

- rtl92e_writeb(dev, MSR, btMsr);
+ rtl92e_writeb(dev, MSR, msr);
}
break;

--
2.34.1