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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10BCBC433FE for ; Mon, 1 Nov 2021 06:15:34 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 5903960C41 for ; Mon, 1 Nov 2021 06:15:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5903960C41 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 95361834B0; Mon, 1 Nov 2021 07:15:30 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="eUVd8coM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2CC1B8343E; Mon, 1 Nov 2021 07:15:28 +0100 (CET) Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) (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 1A09682051 for ; Mon, 1 Nov 2021 07:15:24 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bmeng.cn@gmail.com Received: by mail-pf1-x430.google.com with SMTP id s5so3856846pfg.2 for ; Sun, 31 Oct 2021 23:15:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=U1U1tF2FhZPQUAA1TqkycZ/sAX55U813PNnMfxDyo98=; b=eUVd8coMgutUQgHw8aFiPSxMlUR8csTitv38GCvyEm+g74XJZFyb2QP0zMXYxI5wQ6 /5EpZh3b2usH8Yt0hZNSogdFgsQjkDlfXxAQ3uhb3P+Oj9yJ07X/Fjkdjh+pzxfwwPP3 7HWxwt4GdoLfUTJLBFNPyPE9Ax2iFXoeoiI1s6C6K/R8XoWpYPybLmV7rWKhRZNduhUd /U9z4BOQ/NucAAunFajyihfnDPE68BuC2shUihMfEqdIWD9nBS3u6oOMaY9HY227bBSl N3/mi/bo9dQIa9GUc+DrUWdqo2dCuI1CFCBGHRASDKzJ1GlZG+TwqWAgSe6HlTIjAdjr v1QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=U1U1tF2FhZPQUAA1TqkycZ/sAX55U813PNnMfxDyo98=; b=4QSjshoNzGM6/1VVUEsMvlt9qwnqECjOv0xsR8exuFpoz56YB8BkUT2sxXgULfWGeQ TDUFtbmw5tqkUYC25osgDwdRmpV++/MPx3lNnRQIokkY2uMdcEuTu2UtQlWMwbeA3tW4 wCk4NokWsH58tb2V+HZ18ex2PW3082yzWiWpDIJdlRMIfQxi4qkGD3HW0TLolTvON2n9 vx9xhdZO9Ogp0EzuNWdLWBJEcSz75EkDi4JjcLOSiSo66PqU7pxNTvUXjYfzKC5Ab0bO DCXfOlgt0Ye2zNu/zh6a6O5vnX+GkLdjSw+QX0DbEwNZkrNQZpZDzVd2eqmG/+YfL7Ej x0HA== X-Gm-Message-State: AOAM531DP6/Nt4En9mzWmwfRPdfPxbBmoPBwj1OiIp8LoDlos4344uKo 0qh/ImFR9eBU5wyfCEgql/InNXBnqBY= X-Google-Smtp-Source: ABdhPJxQdgBrgbJkk8r7IrKOo1sm5lFefqGL1uA4AnNi2syRbEaB0cp8ubsR5CFlEYV+Jf+4erkV5w== X-Received: by 2002:a62:61c3:0:b0:44d:2518:cdf1 with SMTP id v186-20020a6261c3000000b0044d2518cdf1mr26600406pfb.31.1635747322224; Sun, 31 Oct 2021 23:15:22 -0700 (PDT) Received: from pek-vx-bsp2.wrs.com (unknown-176-192.windriver.com. [147.11.176.192]) by smtp.gmail.com with ESMTPSA id d15sm15430917pfu.12.2021.10.31.23.15.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Oct 2021 23:15:21 -0700 (PDT) From: Bin Meng To: u-boot@lists.denx.de Cc: Vladimir Oltean , Ramon Fried Subject: [PATCH v2 1/3] net: dsa: Use true instead of 1 in the set_promisc() call Date: Mon, 1 Nov 2021 14:15:10 +0800 Message-Id: <20211101061512.3277805-1-bmeng.cn@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean set_promisc() call accepts the parameter of a bool type. Make it clear by using true instead of 1. Signed-off-by: Bin Meng Reviewed-by: Vladimir Oltean Reviewed-by: Ramon Fried --- Changes in v2: - rebase on u-boot-net/next net/dsa-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/dsa-uclass.c b/net/dsa-uclass.c index 7a465b1099..606b1539a7 100644 --- a/net/dsa-uclass.c +++ b/net/dsa-uclass.c @@ -270,7 +270,7 @@ static void dsa_port_set_hwaddr(struct udevice *pdev, struct udevice *master) struct eth_ops *eth_ops = eth_get_ops(master); if (eth_ops->set_promisc) - eth_ops->set_promisc(master, 1); + eth_ops->set_promisc(master, true); return; } -- 2.25.1