ASoC: rt1015: refactor retry loop and rt1015_priv allocation

Refactors retry loop in flush DAC work.  It is more clear to use a
for-loop here.

Uses !rt1015 to check if NULL.

Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
Link: https://lore.kernel.org/r/20201224100607.3006171-5-tzungbi@google.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Tzung-Bi Shih 2020-12-24 18:06:06 +08:00 • committed by Mark Brown
commit 3128f1c3b5
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0