diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c index 65f7e98076591a366df17e017dfd222e8e41abb5..32007625913d13be771bfe29ae4cc7df2c7f14a4 100644 --- a/sound/soc/codecs/da7219.c +++ b/sound/soc/codecs/da7219.c @@ -801,7 +801,7 @@ static int da7219_dai_event(struct snd_soc_dapm_widget *w, ++i; msleep(50); } - } while ((i < DA7219_SRM_CHECK_RETRIES) & (!srm_lock)); + } while ((i < DA7219_SRM_CHECK_RETRIES) && (!srm_lock)); if (!srm_lock) dev_warn(codec->dev, "SRM failed to lock\n");