From mboxrd@z Thu Jan 1 00:00:00 1970 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 5F723C433EF for ; Wed, 29 Sep 2021 05:51:01 +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 A636F60F4F for ; Wed, 29 Sep 2021 05:51:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A636F60F4F 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 8F694831D3; Wed, 29 Sep 2021 07:50:58 +0200 (CEST) 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="Dyw3zKjI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5B9C48320D; Wed, 29 Sep 2021 07:50:57 +0200 (CEST) Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) (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 C36F180C58 for ; Wed, 29 Sep 2021 07:50:52 +0200 (CEST) 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-pj1-x102d.google.com with SMTP id h12so820277pjj.1 for ; Tue, 28 Sep 2021 22:50:52 -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=pjQuODEwENKHNDK9IW/ckUzdwao+HCDVp3Hdqv1tfeM=; b=Dyw3zKjIXSpr/a8uuwMLXZcVmsUqSWlrhQBofTc0MYDu3TS12Slu3miK7BRDo/gmBd n31CANuole0GGf0zxq79anpdnLj0zL1xNR98czCbd3wj7244E/IE67pZI05BSwsqBhA6 f9Dx8edOQTF4aKC7tomaNYUGRKRDiSUIAhY3dn9honOnpVslnW7Dz/kv1nJQ7bqwjqtD vUll757cSZmw+4ZpGOHJhiUREEUgQJGuw69gxGsdnEdAzhqIOXE7FCQ83H+qCZsvflGK MAifxU//ujst3Gni9sRkvahlgdRXJRYlWdL+lLJg4xxveQr03eo8tVQmoYqexJN0QeG6 3TAQ== 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=pjQuODEwENKHNDK9IW/ckUzdwao+HCDVp3Hdqv1tfeM=; b=5QOZvb+Buo5UPzwL4EOCdNQkL+/APpN54v/xKf0mX5UzLgUlpV+48YVB3c7cvuIw6L ozlhNntCdcRL8bOua7XeYA9lMucbkoecDhIooUOmcecEVgZEz/uspVWXnRWaau64wjNY HGcQxMdw3ITCdR8u1hdDCh0dZW5l7GM0DtAiCd9HIUiXt025KP1M+OyX2GGE+VIx9MOK SU1YEGpCo53UPQoiTyvkK4eXO4KsqTH8BeCYwZHGidr0AhcMhyjwMbgnPvuhkkkhOkvk 7XpTe0jDMWbnK2GOY7rtlhl4Qx0lR8ghyqpiZjS8UjxiE/z1rV5CyJ60OgX3GLOjCtzM rYbg== X-Gm-Message-State: AOAM531hW4IdlTeijTSfRe37v2Rs/4pqkVcrThGI4yvsxYR252Y1Nrb3 goXyLvOzcksvhudLqgmT9DGRZs0Fhyg= X-Google-Smtp-Source: ABdhPJxViUAk6u8y9HfDpS5lbjrEG7apFlSU9QccOPlrqd0/3SlHPm/QErVv8i7qazT88IkitNCESQ== X-Received: by 2002:a17:90a:351:: with SMTP id 17mr4400655pjf.145.1632894651208; Tue, 28 Sep 2021 22:50:51 -0700 (PDT) Received: from i9-aorus-gtx1080.localdomain (144.168.56.201.16clouds.com. [144.168.56.201]) by smtp.gmail.com with ESMTPSA id r76sm981466pfc.2.2021.09.28.22.50.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Sep 2021 22:50:50 -0700 (PDT) From: Bin Meng To: Ramon Fried , u-boot@lists.denx.de Cc: Vladimir Oltean Subject: [PATCH 1/3] net: dsa: Use true instead of 1 in the set_promisc() call Date: Wed, 29 Sep 2021 13:50:44 +0800 Message-Id: <20210929055046.4326-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 --- 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 694664d81b..dcefec03f4 100644 --- a/net/dsa-uclass.c +++ b/net/dsa-uclass.c @@ -282,7 +282,7 @@ static int dsa_port_probe(struct udevice *pdev) 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 0; } -- 2.25.1