Skip to content

Commit b468f37

Browse files
plbossartbroonie
authored andcommitted
ASoC: da7219: use logical AND
Reported by Sparse: da7219.c:841:57: warning: dubious: x & !y Cc: Adam Thomson <Adam.Thomson.Opensource@diasemi.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 123c3de commit b468f37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/codecs/da7219.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ static int da7219_dai_event(struct snd_soc_dapm_widget *w,
838838
++i;
839839
msleep(50);
840840
}
841-
} while ((i < DA7219_SRM_CHECK_RETRIES) & (!srm_lock));
841+
} while ((i < DA7219_SRM_CHECK_RETRIES) && (!srm_lock));
842842

843843
if (!srm_lock)
844844
dev_warn(component->dev, "SRM failed to lock\n");

0 commit comments

Comments
 (0)