Re: [PATCH 12/24] ASoC: codecs: cs-amp-lib: Use guard() for mutex locks
Bui Duc Phuc <[email protected]> Fri, 26 Jun 2026 16:36:52 +0700
| Newsgroups | dev.linux.lists.chrome-platform,dev.linux.lists.asahi,org.kernel.vger.linux-kernel,org.kernel.vger.linux-sound |
|---|---|
| Message-ID | <CAABR9nHxu4_BkSKC+9qAobgSw4x7XkFz9nVHLKWVi-i+6_Xg2A@mail.gmail.com> |
> > It doesn't look cleaner. > But anyway, > Reviewed-by: Richard Fitzgerald <[email protected]> > Thanks for the review. Guards are particularly nice when they can eliminate goto labels and make the code easier to follow. In this file, as you pointed out, they don't make much difference. Even so, I wanted to keep the style consistent across the driver, so I tried to convert as many suitable cases as possible. Best regards, Phuc