staging: r8188eu: clarify that bb_reg_dump uses only path a
authorMartin Kaiser <martin@kaiser.cx>
Sat, 12 Feb 2022 16:17:32 +0000 (17:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Feb 2022 16:11:22 +0000 (17:11 +0100)
The path variable is always 0 in bb_reg_dump. Remove the path variable
and replace the constant 0 with RF_PATH_A to make it clearer that path
a is used.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220212161737.381841-6-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/os_dep/ioctl_linux.c

index 548ed6f965f84d6d07326920512f41be5636f23c..e815ae223f53d4b4f8bda4dcc1e37ddfb66133d1 100644 (file)
@@ -3538,13 +3538,13 @@ static void bb_reg_dump(struct adapter *padapter)
 
 static void rf_reg_dump(struct adapter *padapter)
 {
-       int i, j = 1, path = 0;
+       int i, j = 1;
        u32 value;
 
        pr_info("\n ======= RF REG =======\n");
-       pr_info("\nRF_Path(%x)\n", path);
+       pr_info("\nRF_Path(%x)\n", RF_PATH_A);
        for (i = 0; i < 0x100; i++) {
-               value = rtl8188e_PHY_QueryRFReg(padapter, path, i, 0xffffffff);
+               value = rtl8188e_PHY_QueryRFReg(padapter, RF_PATH_A, i, 0xffffffff);
                if (j % 4 == 1)
                        pr_info("0x%02x ", i);
                pr_info(" 0x%08x ", value);