Fix: logical error

This commit is contained in:
Rin Cat (鈴猫) 2021-12-04 08:45:40 -05:00
parent 96ec215d23
commit 12d7f3bacd
No known key found for this signature in database
GPG Key ID: 40DCF18E97150795

View File

@ -628,7 +628,7 @@ static inline u8 is_valid_id_status(enum halmac_feature_id id, enum halmac_cmd_p
if (status == HALMAC_CMD_PROCESS_RCVD)
return _FALSE;
if ((status != HALMAC_CMD_PROCESS_DONE)
|| (status != HALMAC_CMD_PROCESS_ERROR))
&& (status != HALMAC_CMD_PROCESS_ERROR))
RTW_WARN("%s: %s unexpected status(0x%x)!\n",
__FUNCTION__, RTW_HALMAC_FEATURE_NAME[id],
status);