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: 74e79da9fd ("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>
This commit is contained in:
Dan Carpenter 2022-03-07 15:58:15 +03:00 коммит произвёл Vinod Koul
Родитель 3123109284
Коммит d146de3430
1 изменённых файлов: 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;
}