From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bartlomiej Zolnierkiewicz 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> References: <20170209153403.9730-1-linus.walleij@linaro.org> <20170209153403.9730-4-linus.walleij@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Return-path: In-reply-to: <20170209153403.9730-4-linus.walleij@linaro.org> Sender: linux-block-owner@vger.kernel.org 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 List-Id: linux-mmc@vger.kernel.org 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