idx++;
}
idx += 3;
- if ((u16WIDid == g_wid_num) && (num_wid_processed == false)) {
+ if ((u16WIDid == g_wid_num) && (!num_wid_processed)) {
num_wid_processed = true;
if (-2 == further_process_response(&resp[idx], u16WIDid, cfg_len, true, 0, &pstrWIDcfgResult[ResCnt])) {
* gstrConfigPktInfo.bRespRequired = bRespRequired;*/
- if (gstrConfigPktInfo.bRespRequired == true) {
+ if (gstrConfigPktInfo.bRespRequired) {
down(&SemHandlePktResp);
*ps32BytesRead = gstrConfigPktInfo.s32BytesRead;
ConfigWaitResponse(gps8ConfigPacket, MAX_PACKET_BUFF_SIZE, &s32RcvdRespLen, bRespRequired);
- if (bRespRequired == true) {
+ if (bRespRequired) {
/* If the operating Mode is GET, then we expect a response frame from */
/* the driver. Hence start listening to the port for response */
if (g_oper_mode == GET_CFG) {
{
s32 s32Error = WILC_SUCCESS;
- if (gstrConfigPktInfo.bRespRequired == true) {
+ if (gstrConfigPktInfo.bRespRequired) {
if (s32RespLen <= gstrConfigPktInfo.s32MaxRespBuffLen) {
WILC_memcpy(gstrConfigPktInfo.pcRespBuffer, pcRespBuffer, s32RespLen);
gstrConfigPktInfo.s32BytesRead = s32RespLen;
}
}
- if (bNeedScanRefresh == true) {
+ if (bNeedScanRefresh) {
/*BugID_5418*/
/*Also, refrsh DIRECT- results if */
refresh_scan(priv, 1, true);
return -EIO;
}
- if (bEnablePS == true)
+ if (bEnablePS)
host_int_set_power_mgmt(priv->hWILCWFIDrv, enabled, timeout);
#ifdef TCP_ACK_FILTER
tqe->tcp_PendingAck_index = NOT_TCP_ACK;
#ifdef TCP_ENHANCEMENTS
- if (is_TCP_ACK_Filter_Enabled() == true)
+ if (is_TCP_ACK_Filter_Enabled())
#endif
tcp_process(tqe);
#endif
PRINT_ER("Error while Reading reg WILC_CHANGING_VIR_IF\n");
}
- if (bValue == true) {
+ if (bValue) {
reg |= (BIT31);
} else {
reg &= ~(BIT31);