Commit 2490e323 authored by Michael Straube's avatar Michael Straube Committed by Greg Kroah-Hartman

staging: rtl8188eu: remove braces from single line if blocks

Remove braces from single line if blocks to clear checkpatch warnings.
WARNING: braces {} are not necessary for single statement blocks
Signed-off-by: default avatarMichael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20210726092129.30334-1-straube.linux@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1f0873da
...@@ -1159,9 +1159,8 @@ void rtw_createbss_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd) ...@@ -1159,9 +1159,8 @@ void rtw_createbss_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd)
psta = rtw_get_stainfo(&padapter->stapriv, pnetwork->MacAddress); psta = rtw_get_stainfo(&padapter->stapriv, pnetwork->MacAddress);
if (!psta) { if (!psta) {
psta = rtw_alloc_stainfo(&padapter->stapriv, pnetwork->MacAddress); psta = rtw_alloc_stainfo(&padapter->stapriv, pnetwork->MacAddress);
if (!psta) { if (!psta)
goto createbss_cmd_fail; goto createbss_cmd_fail;
}
} }
rtw_indicate_connect(padapter); rtw_indicate_connect(padapter);
......
...@@ -953,9 +953,8 @@ void rtw_joinbss_event_prehandle(struct adapter *adapter, u8 *pbuf) ...@@ -953,9 +953,8 @@ void rtw_joinbss_event_prehandle(struct adapter *adapter, u8 *pbuf)
} }
/* s4. indicate connect */ /* s4. indicate connect */
if (check_fwstate(pmlmepriv, WIFI_STATION_STATE)) { if (check_fwstate(pmlmepriv, WIFI_STATION_STATE))
rtw_indicate_connect(adapter); rtw_indicate_connect(adapter);
}
/* s5. Cancel assoc_timer */ /* s5. Cancel assoc_timer */
del_timer_sync(&pmlmepriv->assoc_timer); del_timer_sync(&pmlmepriv->assoc_timer);
......
...@@ -1124,9 +1124,8 @@ struct xmit_buf *rtw_alloc_xmitbuf(struct xmit_priv *pxmitpriv) ...@@ -1124,9 +1124,8 @@ struct xmit_buf *rtw_alloc_xmitbuf(struct xmit_priv *pxmitpriv)
list_del_init(&pxmitbuf->list); list_del_init(&pxmitbuf->list);
pxmitpriv->free_xmitbuf_cnt--; pxmitpriv->free_xmitbuf_cnt--;
pxmitbuf->priv_data = NULL; pxmitbuf->priv_data = NULL;
if (pxmitbuf->sctx) { if (pxmitbuf->sctx)
rtw_sctx_done_err(&pxmitbuf->sctx, RTW_SCTX_DONE_BUF_ALLOC); rtw_sctx_done_err(&pxmitbuf->sctx, RTW_SCTX_DONE_BUF_ALLOC);
}
} }
spin_unlock_irqrestore(&pfree_xmitbuf_queue->lock, irql); spin_unlock_irqrestore(&pfree_xmitbuf_queue->lock, irql);
......
...@@ -510,7 +510,6 @@ void Hal_ReadThermalMeter_88E(struct adapter *Adapter, u8 *PROMContent, bool Aut ...@@ -510,7 +510,6 @@ void Hal_ReadThermalMeter_88E(struct adapter *Adapter, u8 *PROMContent, bool Aut
else else
pHalData->EEPROMThermalMeter = EEPROM_Default_ThermalMeter_88E; pHalData->EEPROMThermalMeter = EEPROM_Default_ThermalMeter_88E;
if (pHalData->EEPROMThermalMeter == 0xff || AutoloadFail) { if (pHalData->EEPROMThermalMeter == 0xff || AutoloadFail)
pHalData->EEPROMThermalMeter = EEPROM_Default_ThermalMeter_88E; pHalData->EEPROMThermalMeter = EEPROM_Default_ThermalMeter_88E;
}
} }
...@@ -641,9 +641,8 @@ u32 rtl8188eu_hal_init(struct adapter *Adapter) ...@@ -641,9 +641,8 @@ u32 rtl8188eu_hal_init(struct adapter *Adapter)
} }
status = rtw_hal_power_on(Adapter); status = rtw_hal_power_on(Adapter);
if (status == _FAIL) { if (status == _FAIL)
goto exit; goto exit;
}
/* Save target channel */ /* Save target channel */
haldata->CurrentChannel = 6;/* default set to 6 */ haldata->CurrentChannel = 6;/* default set to 6 */
...@@ -696,9 +695,8 @@ u32 rtl8188eu_hal_init(struct adapter *Adapter) ...@@ -696,9 +695,8 @@ u32 rtl8188eu_hal_init(struct adapter *Adapter)
_InitTxBufferBoundary(Adapter, txpktbuf_bndy); _InitTxBufferBoundary(Adapter, txpktbuf_bndy);
status = InitLLTTable(Adapter, txpktbuf_bndy); status = InitLLTTable(Adapter, txpktbuf_bndy);
if (status == _FAIL) { if (status == _FAIL)
goto exit; goto exit;
}
/* Get Rx PHY status in order to report RSSI and others. */ /* Get Rx PHY status in order to report RSSI and others. */
_InitDriverInfoSize(Adapter, DRVINFO_SZ); _InitDriverInfoSize(Adapter, DRVINFO_SZ);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment