staging:rtl8192u: Remove proxy rtl819XRadioA_Array - Style

The array rtl819XRadioA_Array serves as a proxy array for the actual
array Rtl8192UsbRadioA_Array. This implementation seems to serve no
other purpose then to obscure the actually array Rtl8192UsbRadioA_Array.

This is a coding style change which should have no impact on runtime
code execution.

Signed-off-by: John Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
John Whitmore 2018-07-26 20:24:19 +01:00 committed by Greg Kroah-Hartman
parent def6b79f3f
commit be208c7695
2 changed files with 3 additions and 5 deletions

View File

@ -29,7 +29,6 @@ static u32 RF_CHANNEL_TABLE_ZEBRA[] = {
}; };
#define rtl819XMACPHY_Array Rtl8192UsbMACPHY_Array #define rtl819XMACPHY_Array Rtl8192UsbMACPHY_Array
#define rtl819XRadioA_Array Rtl8192UsbRadioA_Array
#define rtl819XRadioB_Array Rtl8192UsbRadioB_Array #define rtl819XRadioB_Array Rtl8192UsbRadioB_Array
#define rtl819XRadioC_Array Rtl8192UsbRadioC_Array #define rtl819XRadioC_Array Rtl8192UsbRadioC_Array
#define rtl819XRadioD_Array Rtl8192UsbRadioD_Array #define rtl819XRadioD_Array Rtl8192UsbRadioD_Array
@ -981,14 +980,14 @@ u8 rtl8192_phy_ConfigRFWithHeaderFile(struct net_device *dev,
case RF90_PATH_A: case RF90_PATH_A:
for (i = 0; i < RadioA_ArrayLength; i = i+2) { for (i = 0; i < RadioA_ArrayLength; i = i+2) {
if (rtl819XRadioA_Array[i] == 0xfe) { if (Rtl8192UsbRadioA_Array[i] == 0xfe) {
mdelay(100); mdelay(100);
continue; continue;
} }
rtl8192_phy_SetRFReg(dev, eRFPath, rtl8192_phy_SetRFReg(dev, eRFPath,
rtl819XRadioA_Array[i], Rtl8192UsbRadioA_Array[i],
bMask12Bits, bMask12Bits,
rtl819XRadioA_Array[i+1]); Rtl8192UsbRadioA_Array[i+1]);
mdelay(1); mdelay(1);
} }

View File

@ -25,7 +25,6 @@ struct sw_chnl_cmd {
u32 ms_delay; u32 ms_delay;
} __packed; } __packed;
extern u32 rtl819XRadioA_Array[];
extern u32 rtl819XRadioB_Array[]; extern u32 rtl819XRadioB_Array[];
extern u32 rtl819XRadioC_Array[]; extern u32 rtl819XRadioC_Array[];
extern u32 rtl819XRadioD_Array[]; extern u32 rtl819XRadioD_Array[];