Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp559804ybm; Wed, 27 May 2020 02:18:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjMCGzKjfpCAK9CvRXcXFnLpI84zuAFzY4Mj6uk4P0mToIGQq72PHf2UMxXrJGHW0TwR4m X-Received: by 2002:a17:906:8694:: with SMTP id g20mr5146755ejx.75.1590571121268; Wed, 27 May 2020 02:18:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590571121; cv=none; d=google.com; s=arc-20160816; b=eIKxsCiJs6FhdDY9gatPuYuYGe0t2JFHiMOo0UW+S98iVnq6w7PJVMdURnA/OAAxYJ 2TcMPB5vWKYK3072UxEERgnVhBNoZS2pu/eYn9vQRMhjL923adbnOLnTDmQOALsBOe/Y bkyXwsmdDoDkxYB9Q6gYkz77s4jJgmGjfdzGDXT9wk3cdR8LhjmQ/mxdEfladz/tBJaB 4IMvNvwfXBI5BUNir8qrqQuc/bTyKmdg005xFUD+CJwF/hXrpcZJLf//ViEGVfW+LCU9 fE2SWhm7X7NUMZHWmEhzvNLuB1VbUatgfo2QJxnJViqbq9VyrVR0sqRKuhnIgJVM65bp dbDQ== 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=0aoEel7QwWSvuMMO0ZKyF50ptOju77GvcTrXezZ8Pz0=; b=WypL8M27zeloI5Iw2lAWajIRqMMj0bGzotSCg0JH4igTbDnwe+xUv5Ct5DK+ixt/Jb /ejZxUQa+0os3axzRPgeZtc8DviqD743q43soJfmfBscXvQ7sLP5zbW65AkblKIQiafK lik6/LeaTzpZXfBuXh06HZDyhzFkQZN2cpDb6ISt6o/zXgJVmg7keEJNxhScCTbfr1AB zRIcag2/Ix1XEoQzai+3kFax0ABhyu59kZFkF1iKY9Ec5IYRAkGk8laCwFX6T+2szejk taoYqPvi1HO/0B3gsL2E/jThGG7f/Qi/rGpdaAHfwq/cVtp0l6pRgan4m+dbpDJ5yTxB S7Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Z+OLIvRO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u23si1420232ejx.512.2020.05.27.02.18.18; Wed, 27 May 2020 02:18:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Z+OLIvRO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725915AbgEZX3g (ORCPT + 99 others); Tue, 26 May 2020 19:29:36 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:45613 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725804AbgEZX3g (ORCPT ); Tue, 26 May 2020 19:29:36 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id E7EC05C0111; Tue, 26 May 2020 19:29:34 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 26 May 2020 19:29:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=0aoEel 7QwWSvuMMO0ZKyF50ptOju77GvcTrXezZ8Pz0=; b=Z+OLIvRONrhbYRqxPNcvZG d+fZnLbMYg41svLzh/37xeA0mw6lEvwG5fRcwVVZldspt2abB5h8ieHKhfBZgZmQ 8U3zraek5ybYkMoKQ+hhC9WQJfG5sMxS7W5jR3u+Tao+U6dDes/I9k6Vp0oWS5mA 9G9NJQ10dSHBgwQPJPQcPxDUOUHlevKvGPTMZa+nDtrw4N0z4BsCOvO62wzPBwnD AadJZaaFxB/LATBqg85PH926VKiq4SKZchanJvv+ph25IPGmE20pNhCTOZf9bgTI aAbSpqbqtbeuHR/HA0IWd8gUtl3TjME8kF8y4RMFUG3u+lLAbjfkAvqa5RXUZ6MA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddvfedgvdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefkughoucfu tghhihhmmhgvlhcuoehiughoshgthhesihguohhstghhrdhorhhgqeenucggtffrrghtth gvrhhnpedtffekkeefudffveegueejffejhfetgfeuuefgvedtieehudeuueekhfduheel teenucfkphepjeelrddujeeirddvgedruddtjeenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehiughoshgthhesihguohhstghhrdhorhhg X-ME-Proxy: Received: from localhost (bzq-79-176-24-107.red.bezeqint.net [79.176.24.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 284B430665DD; Tue, 26 May 2020 19:29:33 -0400 (EDT) Date: Wed, 27 May 2020 02:29:25 +0300 From: Ido Schimmel To: Colin King Cc: Jiri Pirko , Ido Schimmel , "David S . Miller" , Jakub Kicinski , netdev@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mlxsw: spectrum_router: remove redundant initialization of pointer br_dev Message-ID: <20200526232925.GA1509289@splinter> References: <20200526225649.64257-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200526225649.64257-1-colin.king@canonical.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 26, 2020 at 11:56:49PM +0100, Colin King wrote: > From: Colin Ian King > diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c > index 71aee4914619..8f485f9a07a7 100644 > --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c > +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c > @@ -7572,11 +7572,12 @@ static struct mlxsw_sp_fid * > mlxsw_sp_rif_vlan_fid_get(struct mlxsw_sp_rif *rif, > struct netlink_ext_ack *extack) > { > - struct net_device *br_dev = rif->dev; > + struct net_device *br_dev; > u16 vid; > int err; > > if (is_vlan_dev(rif->dev)) { > + Colin, please drop the extra blank line and mention in subject prefix that the patch is for net-next. Thanks! > vid = vlan_dev_vlan_id(rif->dev); > br_dev = vlan_dev_real_dev(rif->dev); > if (WARN_ON(!netif_is_bridge_master(br_dev))) > -- > 2.25.1 >