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

Bartlomiej Zolnierkiewicz
2017-02-28T14:56:26Z

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@linaro.org>

Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics