On Thursday, February 09, 2017 04:33:50 PM Linus Walleij wrote: > We have this construction: > > if (a && b && !c) > finalize; > else > block; > finalize; > > Which is equivalent by boolean logic to: > > if (!a || !b || c) > block; > finalize; > > Which is simpler code. > > Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@xxxxxxxxxxx> Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics