Read the whole thread, 6 messages PreviousNext Re: [PATCH v2 1/2] regmap: provide helpers for simple bit operations FromMark Brown <broonie@kernel.org> Date2020-05-28 14:45:06 Also inlinux-mediatek, lkml, netdevReply toBartosz Golaszewski, 2020-05-28 On Thu, May 28, 2020 at 04:22:40PM +0200, Bartosz Golaszewski wrote: + return (val & bits) == bits ? 1 : 0; The tenery here is redundant, it's converting a boolean value into a boolean value. Otherwise this looks good.
Keyboard shortcuts hback out one level jnext message in thread / next series-diff position kprevious message in thread / previous series-diff position ldrill in Escclose help / fold thread tree ?toggle this help