soundwire: qcom: fix an error message in swrm_wait_for_frame_gen_enabled()
PATCH 1/1 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 74e79da9fd46 ("soundwire: qcom: add runtime pm support")
Signed-off-by Dan Carpenter <[email protected]>
--- drivers/soundwire/qcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soundwire/qcom.c +1 -1
@@ -1452,7 +1452,7 @@ static bool swrm_wait_for_frame_gen_enabled(struct qcom_swrm_ctrl *swrm) }while (retry--);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; }
Signature · 1 line
2.20.1
Quoted 2 lines · Dan Carpenter
The logical AND && is supposed to be bitwise AND & so it will sometimes print "connected" instead of "disconnected".
Applied, thanks
Signature · 1 line
~Vinod