Thread (50 messages) 50 messages, 6 authors, 2017-03-28

Re: [PATCH 03/16] mmc: core: refactor mmc_request_done()

From: Bartlomiej Zolnierkiewicz <hidden>
Date: 2017-02-28 14:56:26
Also in: linux-mmc

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 <redacted>
Reviewed-by: Bartlomiej Zolnierkiewicz <redacted>

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help