Commit d146de34 authored by Dan Carpenter's avatar Dan Carpenter Committed by Vinod Koul

soundwire: qcom: fix an error message in swrm_wait_for_frame_gen_enabled()

The logical AND && is supposed to be bitwise AND & so it will sometimes
print "connected" instead of "disconnected".

Fixes: 74e79da9 ("soundwire: qcom: add runtime pm support")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20220307125814.GD16710@kiliSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 31231092
...@@ -1452,7 +1452,7 @@ static bool swrm_wait_for_frame_gen_enabled(struct qcom_swrm_ctrl *swrm) ...@@ -1452,7 +1452,7 @@ static bool swrm_wait_for_frame_gen_enabled(struct qcom_swrm_ctrl *swrm)
} while (retry--); } while (retry--);
dev_err(swrm->dev, "%s: link status not %s\n", __func__, dev_err(swrm->dev, "%s: link status not %s\n", __func__,
comp_sts && SWRM_FRM_GEN_ENABLED ? "connected" : "disconnected"); comp_sts & SWRM_FRM_GEN_ENABLED ? "connected" : "disconnected");
return false; return false;
} }
......
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