Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8E8C6EB64DC for ; Mon, 17 Jul 2023 19:29:28 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 885838666F; Mon, 17 Jul 2023 21:29:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="hme/PJvY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EDEFB86698; Mon, 17 Jul 2023 21:29:24 +0200 (CEST) Received: from mail-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BC72686660 for ; Mon, 17 Jul 2023 21:29:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-5704fce0f23so51788147b3.3 for ; Mon, 17 Jul 2023 12:29:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1689622161; x=1692214161; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=SIsOtaSI6WoDLc2b5pRxDyGrdQiXUDs2mbZv8yaqxgc=; b=hme/PJvYTdcGsSjdnzHtgnwu58jWEv055n6t7lGNcJh0jUqUokj31R/obPKbB0qkxA KXHSnxrbohyq8zgevaw7oRnc+qlrlzDpYwHrGZl3cffiAzgDysWNSaByWnZpyWXfl79s ixGnYC8kIGEcCz+k0yxwBy7qdMbqOxc6/keIQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689622161; x=1692214161; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=SIsOtaSI6WoDLc2b5pRxDyGrdQiXUDs2mbZv8yaqxgc=; b=AHGomsHzsGuJjh8Sq4T2X+uJGiu46cCevn3LG46A4aU0mF+Ce99ZauC3AZvYgViaXK igNHHTprSnrSkAdVOdHwyaco8+D5pjFIv01YOEUUYZQo/LeG6omr6vKyYF57XRa7/RFc K0CI2ibTL4yBSuqmCHYd0P1ocwFbP2qIs26wTS4/C0PnI4HI1OMoQyJ0coGbfZRFp8+s f2rYhNXxcDh5OrurEpPuxZUhaDovAjfcFkWNQJvY7c7QJMPEqinlDKaLiwnHCaVlLgUp dB5VGyLfFtEXAwhKcMSpoiWVL/EjXJI9GNEMDXxWgUmGsWHPlMspszLnUs1UMkgYeNE9 tmXQ== X-Gm-Message-State: ABy/qLYAWM252+VAv8OCqdFrrfGLq1qJeqd+FJzUdRxYo4CHoxw0dzfl tBTNLpMyfjG5pO1JiLfXsZGN9Fkk5D7v7PbF/zyxmQ== X-Google-Smtp-Source: APBJJlFIEm3rxmzGgy221xul3HCADrGPAP1cIlFTiyVHeUSngNaSGP6TgxEDcVkt2S1Pdecp2wSOkQ== X-Received: by 2002:a81:a24e:0:b0:577:bc6:6f8c with SMTP id z14-20020a81a24e000000b005770bc66f8cmr14425711ywg.26.1689622161190; Mon, 17 Jul 2023 12:29:21 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b00-6400-865a-8589-771c-0053.res6.spectrum.com. [2603:6081:7b00:6400:865a:8589:771c:53]) by smtp.gmail.com with ESMTPSA id b67-20020a0dd946000000b005772abf6234sm52923ywe.11.2023.07.17.12.29.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jul 2023 12:29:20 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Cc: Andre Przywara Subject: [PATCH] arm: sunxi: Correct warning in board_fit_config_name_match Date: Mon, 17 Jul 2023 15:29:20 -0400 Message-Id: <20230717192920.2063953-1-trini@konsulko.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean When building this with clang, we get a warning about having excess parenthesis here, or that we're incorrectly using "==" when we want "=". Correct these by using parenthesis around our multiplication of constants as this is what was likely intended originally, even if not strictly required. Signed-off-by: Tom Rini --- Cc: Andre Przywara --- board/sunxi/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index f321cd58a6e6..643e8db185b4 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -957,7 +957,7 @@ int board_fit_config_name_match(const char *name) #ifdef CONFIG_PINE64_DT_SELECTION if (strstr(best_dt_name, "-pine64-plus")) { /* Differentiate the Pine A64 boards by their DRAM size. */ - if ((gd->ram_size == 512 * 1024 * 1024)) + if (gd->ram_size == (512 * 1024 * 1024)) best_dt_name = "sun50i-a64-pine64"; } #endif -- 2.34.1