Received: by 2002:a05:6512:3d0e:0:0:0:0 with SMTP id d14csp13496lfv; Tue, 12 Apr 2022 15:17:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHP+9bLyR/dhnPcH3dRYL8ASIHTTgrpxxTpz+zmIWb4N2yxL9mjTkeLZDRVfDRKEDpVNRU X-Received: by 2002:aa7:82d9:0:b0:4fa:2c7f:41e with SMTP id f25-20020aa782d9000000b004fa2c7f041emr6729248pfn.1.1649801824025; Tue, 12 Apr 2022 15:17:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649801824; cv=none; d=google.com; s=arc-20160816; b=C6i+NhQ6q9C/Tqavma2ywJMRzdAkfLhA54YhQ3yyfXH1PHMOPDouSU5XhKuVgqQmWC mPVQIHmXgB78N/kYHi9ibdqtU6wc/JKifD9pmCgTI/PXi4l8/bpsYTg7ttlg++XWG4/a hvlFg/s2C9elSMTn2TvD1n7emICSQr4+TaugnycxOWA+yLuRj7X7Uehtoc+7xDeyw2Nz YCfyOik2cOE3li6TZDhpKQz2S0EXaBGSnvN40ZnEpH39tNHxp8ncjEN+BV6QIscuxbaY 64+/jGDcamXuNUarvbfCrCiAo0Z3+8UZ8KLlnrz5vv7znJTsQSSdLHZT49XLKnVp0ltH HtLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=k1kFbr4PJFmsHiVyh3odwUpl/FEunR2slPc9KbivmVs=; b=jJJkuGqjHjQ24nleaQkzhXStEWcaI48XJr0ASM4oyNf61rHW3Panvn0bpc6hAJAwB3 jR53Hraq+HxoNPgSlb0NS/CaVlQ+DJPw8eowwWv0OVPpIx4lhqQTXB1MzSzAWC1FMvzF yIQgEm9YtALWseZBomeobgQzZTgwm6oF942fgQQLKIvBQn8Gy550bANSloD/Nd/UVLXE gIZM9v+x3hcyXTwsH5E6gShl2HMRt/0BS/zEBb39e9ZfL572KocElQneKPiiRctksuHi QiZsD6+zMMYeHtlBlqxsxeVA27+6nI0UWUWc5YOV5p8RBKFK2NbhaMf6X+lAYstapM6z RrlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=FJsGgOd6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s12-20020a056a00194c00b004fa77892f86si13447735pfk.57.2022.04.12.15.17.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 15:17:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=FJsGgOd6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C6FCE14075E; Tue, 12 Apr 2022 13:58:41 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348303AbiDLMXk (ORCPT + 99 others); Tue, 12 Apr 2022 08:23:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354327AbiDLMW6 (ORCPT ); Tue, 12 Apr 2022 08:22:58 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44A816C94E; Tue, 12 Apr 2022 04:29:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=k1kFbr4PJFmsHiVyh3odwUpl/FEunR2slPc9KbivmVs=; b=FJsGgOd6Jog/SVqJqtG82tp8gF GmofMqvYUa9rQRC13PSTLfmhxejGCEF6gS4x9w8uLHIZWizN5tXQvJ85FM+OjXDsvvshki/tqrWTR ijKqokXU7UeOILCkJWOmQfRrdgFUmI7ulHIUz6O//1a80snecUa4eRrVm1MTENQUInqEPHbeZPb2D unRlctmv3BT82g774UuWb9bM94zmpSy9Tu///xUdzOrE+iYwjfidcGftFycGjXYqjyemYE5BVqNNI TfjxE7pcrSZTtu7dijAp8lI9sMPrOI9Ksv+/xDzYHzORtMtioQ+vO+NNavrO13alkrr6dMoe/et7D lyMXRLFg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:58226) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1neEh4-0001o2-0I; Tue, 12 Apr 2022 12:28:21 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1neEgf-0002LH-Jc; Tue, 12 Apr 2022 12:27:57 +0100 Date: Tue, 12 Apr 2022 12:27:57 +0100 From: "Russell King (Oracle)" To: Jakob Koschel Cc: "David S. Miller" , Jakub Kicinski , Paolo Abeni , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , Lars Povlsen , Steen Hegelund , UNGLinuxDriver@microchip.com, Ariel Elior , Manish Chopra , Edward Cree , Martin Habets , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Jiri Pirko , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Casper Andersson , Colin Ian King , Arnd Bergmann , Michael Walle , Christophe JAILLET , Eric Dumazet , Xu Wang , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, bpf@vger.kernel.org, Mike Rapoport , Brian Johannesmeyer , Cristiano Giuffrida , "Bos, H.J." , Vladimir Oltean Subject: Re: [PATCH net-next v2 05/18] net: dsa: mv88e6xxx: remove redundant check in mv88e6xxx_port_vlan() Message-ID: References: <20220412105830.3495846-1-jakobkoschel@gmail.com> <20220412105830.3495846-6-jakobkoschel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220412105830.3495846-6-jakobkoschel@gmail.com> Sender: Russell King (Oracle) X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 12, 2022 at 12:58:17PM +0200, Jakob Koschel wrote: > We know that "dev > dst->last_switch" in the "else" block. > In other words, that "dev - dst->last_switch" is > 0. > > dsa_port_bridge_num_get(dp) can be 0, but the check > "if (bridge_num + dst->last_switch != dev) continue", rewritten as > "if (bridge_num != dev - dst->last_switch) continue", aka > "if (bridge_num != something which cannot be 0) continue", > makes it redundant to have the extra "if (!bridge_num) continue" logic, > since a bridge_num of zero would have been skipped anyway. > > Signed-off-by: Jakob Koschel > Signed-off-by: Vladimir Oltean Isn't this Vladimir's patch? If so, it should be commited as Vladimir as the author, and Vladimir's sign-off should appear before yours. When sending out such patches, there should be a From: line for Vladimir as the first line in the body of the patch email. The same goes for the next mv88e6xxx patch in this series - I think both of these are the patches Vladimir sent in his email: https://lore.kernel.org/r/20220408123101.p33jpynhqo67hebe@skbuf Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!