From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fs07x-0000Ep-HQ for barebox@lists.infradead.org; Tue, 21 Aug 2018 06:27:00 +0000 Received: by mail-pf1-x444.google.com with SMTP id x17-v6so7993422pfh.5 for ; Mon, 20 Aug 2018 23:26:43 -0700 (PDT) From: Andrey Smirnov Subject: [PATCH 19/22] bbu: Remove logical negation in barebox_update_handler_exists() Date: Mon, 20 Aug 2018 23:26:00 -0700 Message-Id: <20180821062603.17393-20-andrew.smirnov@gmail.com> In-Reply-To: <20180821062603.17393-1-andrew.smirnov@gmail.com> References: <20180821062603.17393-1-andrew.smirnov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org To: barebox@lists.infradead.org Cc: Andrey Smirnov Returning !bbu_find_handler() from barebox_update_handler_exists() would return the opposite result from what the name of that funciton implies. Drop the "!" to make it behave as expected. Signed-off-by: Andrey Smirnov --- common/bbu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/bbu.c b/common/bbu.c index 11e44f4a7..69ccac68a 100644 --- a/common/bbu.c +++ b/common/bbu.c @@ -151,7 +151,7 @@ bool barebox_update_handler_exists(struct bbu_data *data) if (!data->handler_name) return false; - return !bbu_find_handler(data->handler_name); + return bbu_find_handler(data->handler_name); } static int bbu_check_of_compat(struct bbu_data *data) -- 2.17.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox