]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: rtl8723au: remove redundant initialization
authorGujulan Elango, Hari Prasath (H.) <hgujulan@visteon.com>
Tue, 12 May 2015 10:01:18 +0000 (10:01 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 May 2015 00:22:44 +0000 (09:22 +0900)
The variable pHalData is initialized twice in this same function with
same value.So removing one of them.

Signed-off-by: Hari Prasath Gujulan Elango <hgujulan@visteon.com>
Acked-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/rtl8723a_cmd.c

index 11e1108d0c56f17a37de922b7b969df2ea842c9b..9733aa6ef908c419999d2ad69c16ff9dc5911bff 100644 (file)
@@ -55,7 +55,7 @@ int FillH2CCmd(struct rtw_adapter *padapter, u8 ElementID, u32 CmdLen,
        u8 h2c_box_num;
        u32 msgbox_addr;
        u32 msgbox_ex_addr;
-       struct hal_data_8723a *pHalData = GET_HAL_DATA(padapter);
+       struct hal_data_8723a *pHalData;
        u32 h2c_cmd = 0;
        u16 h2c_cmd_ex = 0;
        int ret = _FAIL;