mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-22 12:33:40 +00:00
rtl8188eu: Fix checkpatch errors in core/rtw_mp_ioctl.c
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
7b5b86f621
commit
a7a6040bb2
1 changed files with 166 additions and 165 deletions
|
@ -74,7 +74,8 @@ _func_enter_;
|
|||
pbbreg = (struct bb_reg_param *)(poid_par_priv->information_buf);
|
||||
|
||||
offset = (u16)(pbbreg->offset) & 0xFFF; /* 0ffset :0x800~0xfff */
|
||||
if (offset < BB_REG_BASE_ADDR) offset |= BB_REG_BASE_ADDR;
|
||||
if (offset < BB_REG_BASE_ADDR)
|
||||
offset |= BB_REG_BASE_ADDR;
|
||||
|
||||
value = pbbreg->value;
|
||||
|
||||
|
@ -112,7 +113,8 @@ _func_enter_;
|
|||
pbbreg = (struct bb_reg_param *)(poid_par_priv->information_buf);
|
||||
|
||||
offset = (u16)(pbbreg->offset) & 0xFFF; /* 0ffset :0x800~0xfff */
|
||||
if (offset < BB_REG_BASE_ADDR) offset |= BB_REG_BASE_ADDR;
|
||||
if (offset < BB_REG_BASE_ADDR)
|
||||
offset |= BB_REG_BASE_ADDR;
|
||||
|
||||
_irqlevel_changed_(&oldirql, LOWER);
|
||||
value = read_bbreg(Adapter, offset, 0xFFFFFFFF);
|
||||
|
@ -407,8 +409,7 @@ _func_enter_;
|
|||
if (poid_par_priv->information_buf_len != sizeof(u32))
|
||||
return NDIS_STATUS_INVALID_LENGTH;
|
||||
|
||||
if (poid_par_priv->type_of_oid == SET_OID)
|
||||
{
|
||||
if (poid_par_priv->type_of_oid == SET_OID) {
|
||||
antenna = *(u32 *)poid_par_priv->information_buf;
|
||||
|
||||
Adapter->mppriv.antenna_tx = (u16)((antenna & 0xFFFF0000) >> 16);
|
||||
|
@ -570,8 +571,7 @@ NDIS_STATUS oid_rt_pro_reset_rx_packet_received_hdl(struct oid_par_priv *poid_pa
|
|||
|
||||
_func_enter_;
|
||||
|
||||
if (poid_par_priv->type_of_oid != SET_OID)
|
||||
{
|
||||
if (poid_par_priv->type_of_oid != SET_OID) {
|
||||
status = NDIS_STATUS_NOT_ACCEPTED;
|
||||
return status;
|
||||
}
|
||||
|
@ -659,7 +659,9 @@ _func_enter_;
|
|||
|
||||
*poid_par_priv->bytes_rw = poid_par_priv->information_buf_len;
|
||||
|
||||
RT_TRACE(_module_mp_, _drv_info_, ("-oid_rt_get_phy_rx_packet_crc32_error_hdl: recv_err=%d\n", *(ULONG*)poid_par_priv->information_buf));
|
||||
RT_TRACE(_module_mp_, _drv_info_,
|
||||
("-oid_rt_get_phy_rx_packet_crc32_error_hdl: recv_err =%d\n",
|
||||
*(ULONG *)poid_par_priv->information_buf));
|
||||
|
||||
_func_exit_;
|
||||
|
||||
|
@ -898,8 +900,7 @@ _func_enter_;
|
|||
|
||||
_irqlevel_changed_(&oldirql, LOWER);
|
||||
|
||||
switch (RegRWStruct->width)
|
||||
{
|
||||
switch (RegRWStruct->width) {
|
||||
case 1:
|
||||
if (value > 0xFF) {
|
||||
status = NDIS_STATUS_NOT_ACCEPTED;
|
||||
|
@ -1166,8 +1167,9 @@ _func_enter_;
|
|||
if (rtw_efuse_access(Adapter, false, addr, cnts, data) == _FAIL) {
|
||||
RT_TRACE(_module_mp_, _drv_err_, ("!oid_rt_pro_read_efuse_hdl: rtw_efuse_access FAIL!\n"));
|
||||
status = NDIS_STATUS_FAILURE;
|
||||
} else
|
||||
} else {
|
||||
*poid_par_priv->bytes_rw = poid_par_priv->information_buf_len;
|
||||
}
|
||||
_irqlevel_changed_(&oldirql, RAISE);
|
||||
|
||||
_func_exit_;
|
||||
|
@ -1232,8 +1234,7 @@ _func_enter_;
|
|||
|
||||
_irqlevel_changed_(&oldirql, LOWER);
|
||||
|
||||
if (poid_par_priv->type_of_oid == QUERY_OID)
|
||||
{
|
||||
if (poid_par_priv->type_of_oid == QUERY_OID) {
|
||||
RT_TRACE(_module_mp_, _drv_notice_,
|
||||
("oid_rt_pro_rw_efuse_pgpkt_hdl: Read offset=0x%x\n",\
|
||||
ppgpkt->offset));
|
||||
|
@ -1288,9 +1289,9 @@ _func_enter_;
|
|||
if (ret == _SUCCESS) {
|
||||
*(u32 *)poid_par_priv->information_buf = size;
|
||||
*poid_par_priv->bytes_rw = poid_par_priv->information_buf_len;
|
||||
} else
|
||||
} else {
|
||||
status = NDIS_STATUS_FAILURE;
|
||||
|
||||
}
|
||||
_func_exit_;
|
||||
|
||||
return status;
|
||||
|
@ -1346,31 +1347,30 @@ NDIS_STATUS oid_rt_pro_efuse_map_hdl(struct oid_par_priv *poid_par_priv)
|
|||
u8 *data;
|
||||
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
|
||||
struct adapter *Adapter = (struct adapter *)(poid_par_priv->adapter_context);
|
||||
u16 mapLen=0;
|
||||
u16 maplen = 0;
|
||||
|
||||
_func_enter_;
|
||||
|
||||
RT_TRACE(_module_mp_, _drv_notice_, ("+oid_rt_pro_efuse_map_hdl\n"));
|
||||
|
||||
EFUSE_GetEfuseDefinition(Adapter, EFUSE_WIFI, TYPE_EFUSE_MAP_LEN, (void *)&mapLen, false);
|
||||
EFUSE_GetEfuseDefinition(Adapter, EFUSE_WIFI, TYPE_EFUSE_MAP_LEN, (void *)&maplen, false);
|
||||
|
||||
*poid_par_priv->bytes_rw = 0;
|
||||
|
||||
if (poid_par_priv->information_buf_len < mapLen)
|
||||
if (poid_par_priv->information_buf_len < maplen)
|
||||
return NDIS_STATUS_INVALID_LENGTH;
|
||||
|
||||
data = (u8 *)poid_par_priv->information_buf;
|
||||
|
||||
_irqlevel_changed_(&oldirql, LOWER);
|
||||
|
||||
if (poid_par_priv->type_of_oid == QUERY_OID)
|
||||
{
|
||||
if (poid_par_priv->type_of_oid == QUERY_OID) {
|
||||
RT_TRACE(_module_mp_, _drv_info_,
|
||||
("oid_rt_pro_efuse_map_hdl: READ\n"));
|
||||
|
||||
if (rtw_efuse_map_read(Adapter, 0, mapLen, data) == _SUCCESS)
|
||||
*poid_par_priv->bytes_rw = mapLen;
|
||||
else {
|
||||
if (rtw_efuse_map_read(Adapter, 0, maplen, data) == _SUCCESS) {
|
||||
*poid_par_priv->bytes_rw = maplen;
|
||||
} else {
|
||||
RT_TRACE(_module_mp_, _drv_err_,
|
||||
("oid_rt_pro_efuse_map_hdl: READ fail\n"));
|
||||
status = NDIS_STATUS_FAILURE;
|
||||
|
@ -1380,9 +1380,9 @@ _func_enter_;
|
|||
RT_TRACE(_module_mp_, _drv_info_,
|
||||
("oid_rt_pro_efuse_map_hdl: WRITE\n"));
|
||||
|
||||
if (rtw_efuse_map_write(Adapter, 0, mapLen, data) == _SUCCESS)
|
||||
*poid_par_priv->bytes_rw = mapLen;
|
||||
else {
|
||||
if (rtw_efuse_map_write(Adapter, 0, maplen, data) == _SUCCESS) {
|
||||
*poid_par_priv->bytes_rw = maplen;
|
||||
} else {
|
||||
RT_TRACE(_module_mp_, _drv_err_,
|
||||
("oid_rt_pro_efuse_map_hdl: WRITE fail\n"));
|
||||
status = NDIS_STATUS_FAILURE;
|
||||
|
@ -1465,9 +1465,10 @@ unsigned int mp_ioctl_xmit_packet_hdl(struct oid_par_priv *poid_par_priv)
|
|||
pattrib->pktlen = pparm->length;
|
||||
_rtw_memcpy(pattrib->dst, pparm->da, ETH_ALEN);
|
||||
SetPacketTx(padapter);
|
||||
} else
|
||||
} else {
|
||||
return NDIS_STATUS_FAILURE;
|
||||
}
|
||||
}
|
||||
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue