[PATCH 2/2] ALSA: firewire-tascam: Use do { } while for loops executed at least once

2017-05-15 Thread Geert Uytterhoeven
If a loop is intended to be executed at least once, it is better to use "do { ... } while (...)" instead of "while (...) { ... }". The former is easier to understand for the casual reviewer, and doesn't require preinitializing the canary variable. Signed-off-by: Geert Uytterhoeven

[PATCH 2/2] ALSA: firewire-tascam: Use do { } while for loops executed at least once

2017-05-15 Thread Geert Uytterhoeven
If a loop is intended to be executed at least once, it is better to use "do { ... } while (...)" instead of "while (...) { ... }". The former is easier to understand for the casual reviewer, and doesn't require preinitializing the canary variable. Signed-off-by: Geert Uytterhoeven ---