From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Bartlomiej Zolnierkiewicz To: Linus Walleij Cc: linux-mmc@vger.kernel.org, Ulf Hansson , Adrian Hunter , Paolo Valente , Chunyan Zhang , Baolin Wang , linux-block@vger.kernel.org, Jens Axboe , Christoph Hellwig , Arnd Bergmann Subject: Re: [PATCH 03/16] mmc: core: refactor mmc_request_done() Date: Tue, 28 Feb 2017 15:56:26 +0100 Message-id: <24010300.RcWSA2N5Oi@amdc3058> In-reply-to: <20170209153403.9730-4-linus.walleij@linaro.org> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii References: <20170209153403.9730-1-linus.walleij@linaro.org> <20170209153403.9730-4-linus.walleij@linaro.org> List-ID: 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 Reviewed-by: Bartlomiej Zolnierkiewicz Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics