Re: [PATCH] ASoC: meson: axg-tdm-formatter: Use guard() for mutex locks
Bui Duc Phuc <[email protected]>
| Newsgroups | org.infradead.lists.linux-amlogic,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel,org.kernel.vger.linux-sound |
|---|---|
| Message-ID | <CAABR9nGC=f_hO7FX2RnRHLb5D2Tt9=qT_yv-Fv2y32AAoQy+sw@mail.gmail.com> |
Hi Jerome, Thank you for your feedback, > > I suppose it is OK but it does not seem to really clean anything and > make the code easier to follow in that instance, from my perspective at > least. > > If there is policy to systematically use guard() whenever > possible then OK, otherwise it seems unnecessary. > I have noticed that guard() has been adopted in several subsystems. Since this appears to be the only place in the Meson ASoC code currently using mutex_lock()/mutex_unlock(), I converted it for consistency with the newer style. Going forward, should new Meson ASoC code use guard(), or should it continue using the traditional mutex_lock()/mutex_unlock() pattern? Best regards, Phuc _______________________________________________ linux-amlogic mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-amlogic