Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp967787lqt; Fri, 7 Jun 2024 04:27:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVt5Xr9FNiVc+vmqeSo3xmombU9EKvbYDFg5i5dhJQUu4ZteyZNGKkfDUW1So47kv8bPi3hysi40B9VSg+PrqI44zhOWByjW8qOGvSnaQ== X-Google-Smtp-Source: AGHT+IHmDGgt4ME8AHLOlYJOX9BUDEYBVI481zclpyK4PO/lITIdktVW/VZCTl+/HDG3DyxDPqk1 X-Received: by 2002:a05:620a:3902:b0:794:9b38:2359 with SMTP id af79cd13be357-7953c4ab311mr214305485a.56.1717759649181; Fri, 07 Jun 2024 04:27:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717759649; cv=pass; d=google.com; s=arc-20160816; b=tfM6uL70J6imwSoBReTndZrwVHAzXLfhN88Fw6FMRnKDFyzA5O53bb0vLxCacEzlsw 7dbfQOw9Olg+quGFCg9WTQeZE+UbK7MONhkD7190YA7zfVe6T11c3Jm0fcH7p+nijpgW V5YwwiEeB2NEHGo5Nx7rthW2WDmqEfEbU6zmCKu5Um18yOANOsxs/ZvENOGtmGHHgFLK D0EaU/jbvLOHdbTi+wESTXNrvRv7flYYZQcCtmkosNSx3cPC9LIpEJAWeTsJMGPJ7DYN IORb+Ph22onAtNYEtZWfXIO5lfcR8uK+x1ruzYdzqAFIUM/UQXDSGNVrZZYEmVncFzM9 Hj/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4O8PWUHgswtnudfxQ4Sax/Sp/jhho0l5dtDe9E7a3bM=; fh=nXNshSLstUQZ5qWDY41yU85fpA6i6ASYe1zh7ILjHFA=; b=sJLKlEn5WEsP91kTEXhgScEaDpRcE4VU8kuFTpZT0xStB5cT2WESU6mB+WYWbE2p1G chuSDXp0RN3N8QlpEGPbyaL5WhD6xJ3vIUvhGtA9BDrVig+EB2QtnAkB6m4zQJp8TA12 T0YbVGCIUQgyVJCW+W3UTBM9E1x5OYAw0nhaeoopt2cEzSlexROi2oqeeFjpM41akh4h KpN7Sn+la3NaA7iRmlNV7OFVo9S3EhYf9JbeRi2Ra7jlp49wdiJaxAiu1JpPYFYohb5D 6SNX+de/pqW4BSx77KjxoLA2VVLbP+BHETKr/X1ZIvNkOKTx+pf5a8OxVxkGtChWq0IS T45g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=M6Uc2teN; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-205913-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205913-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-795331d297csi361505785a.336.2024.06.07.04.27.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 04:27:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205913-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=M6Uc2teN; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-205913-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205913-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E06B41C21D82 for ; Fri, 7 Jun 2024 11:27:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E293F188CD0; Fri, 7 Jun 2024 11:27:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="M6Uc2teN" Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 903DE15ADB3; Fri, 7 Jun 2024 11:27:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717759637; cv=none; b=UgdwfQW1ipjNyfg/ON5/X2tZnkjwnBoljY3jxizMmTW21EZZ4JobmMTbrAyAgZvmmf2iHDONqboKqzidlnSTNMfaS1/pfTL4IjJU+TsElKMIM1mIe3OEK2yKQDQcPd2Vf3frZ5Gms34xzw8HKAMN1Ncz/xHHaTFObrkjOwFt7ZM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717759637; c=relaxed/simple; bh=J05QWbbiw+VgL/MK4wms+4MGEX63h3UCS8wgStsYmVA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NxRyemsQUW0qoGUkjNkVxgVvoibpJ4sHGA0nfGi0vajh6UF+0gjs1lJp536bfV2F8crYmyo04/wNASygtZpCjaij0D/A/hqnH9xrjGFJmi2Vp53hRcBX8jWt3UdlWVou/gN000xI6w2bA2+22EKA1FB4ggTQaBqNmeonk7SLMbU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=M6Uc2teN; arc=none smtp.client-ip=209.85.208.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2eadaac1d28so13719191fa.3; Fri, 07 Jun 2024 04:27:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717759634; x=1718364434; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=4O8PWUHgswtnudfxQ4Sax/Sp/jhho0l5dtDe9E7a3bM=; b=M6Uc2teN2G+Q6/lXaZdQikXeOkA6ZGsy6DsS3wif2Eda2OQKGSCHRl0EGqd6fefaDO ZQnjMOIIeYO7Us6zKVSxN0yjQ0sBggnJT4NP8IMIGNVVArGzzUvqMzLAHb2oYAR172ug +nctpJSQ5A+KBMenkeMQKEydL4JR/Qfi4LUc+mxaDd//quV40xPZiNtQzWF1cs8MWqWY 5FFQfNX5uLD301leEOug79T+1yvaQBJoxVVgZVOGvgEhdBnmdS0yWf3bohqMnelbaUs9 FV9m90JUBQO7lMZZVCVw7cPhpeadCjukUWw8de7w+rKgh3Wm/ObMgpdaOverIYmk4w// saGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717759634; x=1718364434; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=4O8PWUHgswtnudfxQ4Sax/Sp/jhho0l5dtDe9E7a3bM=; b=b8W77/1BBh7BQQkbKAqtLJu5O2xn73gPPvPcD6bcgTxmHsreWJQK7mENDBEF/TBJIL Yfznraoudd73ysUoG8XBAh10vgtqKYdY6i+NmZalR8gRzhzS7OB5O98/3sA2JWLjSkA0 FBxrCYOYZABhXma9kznZQZr8Z9nJcHQNNscUx+01Q2bXJdEffoS03gV3PYcimXjuCT+1 A/A4vBFf4YHMyFC1v71ht2j2vv6poCDoff4RuniH7CKqE68SnsRhwP9EL+KiANKQZGTb n1ytAQE/TwR363dKvio2X8UgudjcbOAeAjXgbYBmwex4PdzMDHPN+3LGdOiO7vMw0oIF Of2g== X-Forwarded-Encrypted: i=1; AJvYcCUcMFCC/pDp6l84KZHQUsStsTvpotE29eFqEpbXHvcCrcdBrhG7bMhRT++KFNzYCNdnRTlNhp33rt5TuzlLylnyWdIyzY7CfbV1SuDfHpKd0GpjJ80CftESAyr26e/DGevqj/VZU319Z4ofLJ85SXHPv1uzoWf51kkjpebfqxGJoQ== X-Gm-Message-State: AOJu0YzBcfgDSMQDOFTQpBX2KTavzfm+NWfdMAeZjT/c4On5GTvc5gTe HIwF2y1hYJRB/wYcJBTckamDLmlEsnJ4Gs7aB5LxcnRYI7KQuEXc X-Received: by 2002:a05:651c:2119:b0:2e9:4a5b:b6c2 with SMTP id 38308e7fff4ca-2eadce74611mr18005101fa.41.1717759633358; Fri, 07 Jun 2024 04:27:13 -0700 (PDT) Received: from skbuf ([188.25.55.166]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57aae202965sm2605980a12.77.2024.06.07.04.27.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 04:27:12 -0700 (PDT) Date: Fri, 7 Jun 2024 14:27:10 +0300 From: Vladimir Oltean To: Martin Schiller Cc: martin.blumenstingl@googlemail.com, hauke@hauke-m.de, andrew@lunn.ch, f.fainelli@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 10/13] net: dsa: lantiq_gswip: Fix error message in gswip_add_single_port_br() Message-ID: <20240607112710.gbqyhnwisnjfnxrl@skbuf> References: <20240606085234.565551-1-ms@dev.tdt.de> <20240606085234.565551-11-ms@dev.tdt.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240606085234.565551-11-ms@dev.tdt.de> On Thu, Jun 06, 2024 at 10:52:31AM +0200, Martin Schiller wrote: > From: Martin Blumenstingl > > The error message is printed when the port cannot be used. Update the > error message to reflect that. > > Signed-off-by: Martin Blumenstingl > --- > drivers/net/dsa/lantiq_gswip.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/dsa/lantiq_gswip.c b/drivers/net/dsa/lantiq_gswip.c > index d2195271ffe9..3c96a62b8e0a 100644 > --- a/drivers/net/dsa/lantiq_gswip.c > +++ b/drivers/net/dsa/lantiq_gswip.c > @@ -658,7 +658,8 @@ static int gswip_add_single_port_br(struct gswip_priv *priv, int port, bool add) > int err; > > if (port >= max_ports || dsa_is_cpu_port(priv->ds, port)) { > - dev_err(priv->dev, "single port for %i supported\n", port); > + dev_err(priv->dev, "single port for %i is not supported\n", > + port); > return -EIO; > } > > -- > 2.39.2 > Isn't even the original condition (port >= max_ports) dead code? Why not remove the condition altogether?