Skip to content

Commit d146de3

Browse files
Dan Carpentervinodkoul
authored andcommitted
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: 74e79da ("soundwire: qcom: add runtime pm support") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/20220307125814.GD16710@kili Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 3123109 commit d146de3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/soundwire/qcom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1452,7 +1452,7 @@ static bool swrm_wait_for_frame_gen_enabled(struct qcom_swrm_ctrl *swrm)
14521452
} while (retry--);
14531453

14541454
dev_err(swrm->dev, "%s: link status not %s\n", __func__,
1455-
comp_sts && SWRM_FRM_GEN_ENABLED ? "connected" : "disconnected");
1455+
comp_sts & SWRM_FRM_GEN_ENABLED ? "connected" : "disconnected");
14561456

14571457
return false;
14581458
}

0 commit comments

Comments
 (0)