diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2017-03-28 10:40:31 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-04-24 21:42:08 +0200 |
commit | 67b8360acc0d717c46af3008fc10dcc5c91f7745 (patch) | |
tree | b2f7a98956d701af190f0b045c308252620a0fa4 /lib/irq_regs.c | |
parent | 0e72f95bf329dea7985f0f4ac81cc888e8b79797 (diff) |
mmc: core: refactor mmc_request_done()
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.
Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'lib/irq_regs.c')
0 files changed, 0 insertions, 0 deletions