diff --git a/core/sme/src/csr/csr_util.c b/core/sme/src/csr/csr_util.c index 06002ddb67a3..4939aa99a0aa 100644 --- a/core/sme/src/csr/csr_util.c +++ b/core/sme/src/csr/csr_util.c @@ -444,10 +444,9 @@ tListElem *csr_nonscan_active_ll_peek_head(struct mac_context *mac_ctx, cmd = wlan_serialization_peek_head_active_cmd_using_psoc(mac_ctx->psoc, false); - if (!cmd) { - sme_err("No cmd found"); + if (!cmd) return NULL; - } + sme_cmd = cmd->umac_cmd; return &sme_cmd->Link;