These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / staging / rtl8723au / hal / rtl8723a_cmd.c
index 11e1108..1662c03 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;
@@ -127,8 +127,7 @@ int rtl8723a_set_raid_cmd(struct rtw_adapter *padapter, u32 mask, u8 arg)
        u8 buf[5];
 
        memset(buf, 0, 5);
-       mask = cpu_to_le32(mask);
-       memcpy(buf, &mask, 4);
+       put_unaligned_le32(mask, buf);
        buf[4]  = arg;
 
        FillH2CCmd(padapter, MACID_CONFIG_EID, 5, buf);