Commit be88dae8 authored by Aliasgar Surti's avatar Aliasgar Surti Committed by Greg Kroah-Hartman

staging: rtl8723bs: removed unwanted if..else condition

There is use of if..elseif..else condition which has same logic
in all three blocks.
Removed if..else block and placed log message instead that.
Signed-off-by: default avatarAliasgar Surti <aliasgar.surti500@gmail.com>
Reviewed-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/1571321906-15074-1-git-send-email-aliasgar.surti500@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bb84f28f
......@@ -507,19 +507,9 @@ int rtw_cmd_thread(void *context)
cmd_process_time = jiffies_to_msecs(jiffies - cmd_start_time);
if (cmd_process_time > 1000) {
if (pcmd->cmdcode == GEN_CMD_CODE(_Set_Drv_Extra)) {
DBG_871X(ADPT_FMT" cmd =%d process_time =%lu > 1 sec\n",
ADPT_ARG(pcmd->padapter), pcmd->cmdcode, cmd_process_time);
/* rtw_warn_on(1); */
} else if (pcmd->cmdcode == GEN_CMD_CODE(_Set_MLME_EVT)) {
DBG_871X(ADPT_FMT" cmd =%d, process_time =%lu > 1 sec\n",
ADPT_ARG(pcmd->padapter), pcmd->cmdcode, cmd_process_time);
/* rtw_warn_on(1); */
} else {
DBG_871X(ADPT_FMT" cmd =%d, process_time =%lu > 1 sec\n",
ADPT_ARG(pcmd->padapter), pcmd->cmdcode, cmd_process_time);
/* rtw_warn_on(1); */
}
DBG_871X(ADPT_FMT "cmd= %d process_time= %lu > 1 sec\n",
ADPT_ARG(pcmd->padapter), pcmd->cmdcode,
cmd_process_time);
}
/* call callback function for post-processed */
......
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