Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2439516imu; Mon, 17 Dec 2018 01:53:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/XwDlYNKKt9eZnXOWtjG3+LFVJ+zHCXFJmjQ0Sk+e4SuUTkBF9qUv5eei8ROnzN//c8TqLk X-Received: by 2002:a62:5716:: with SMTP id l22mr12628187pfb.16.1545040380929; Mon, 17 Dec 2018 01:53:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545040380; cv=none; d=google.com; s=arc-20160816; b=SkPlFuEE+tqu0OBQrtY3GN4KUIGwxoIvEaEAaanGKEQqKcM+2RjmcFmJlnXWhlr3if v5y6roCDwa+I669Ea86pxPRc3gHueD7w8qw61WGUIrvWGWrIHZuI7svAM5btHHYOaxXv 6VJNC6xY2A3zMKSPhec3FlS0P9QWlem5c8V/SC2pypao88trryHTzxBiiEONAM/LOSpu mYXBBuXya6o3805KJ3At+kJdEfSUvG8t5Qxu1ScwkOL1VTZsBcF0khfQwSIWVnDMq/ec MvLBFeFLUq3kYB6yAim7L2MRgcaZoqUtxdT4dcEUIiGNlNPIwVG5LUOa1fOVXuiwE9Zg zN1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=sIl+D+RSCNRzf5F3LiIMtk4dGuasREWKnaEe9ZC4r4o=; b=enJI7dr4PeTzPAP/0kV+st0zdkMCj1UceJZASxGdSgpmyS/1FOHZtm3sDRpLJno0Sv DFy0tZ/e96Gr6oyd2yEjSXSJ8nRP6LveJrTbUfUJXmbMojsMY4evSKb8wln8g+MEsVln V/WCoIK3wFwvj5VZyTXxS6bbPzGpv1XaQb9glGlOKW2ph3h8ITFVLS+YGiPN8xMM0N41 N2PPY27dYN01zBMGyT9Qc7M+xVbuLom2zg3251NPQA/KSDw0Q1ijVYrX+M9t9SesvHuc PZ61yWmQZXkzNCeAwQB/fuAYePgHYB1g8haNRKbVs1vxxkys+Ff48+sRTxtgo4MHNpjn fgSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cumulusnetworks.com header.s=google header.b=E22wkjxr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cumulusnetworks.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d16si10656232pfn.169.2018.12.17.01.52.45; Mon, 17 Dec 2018 01:53:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@cumulusnetworks.com header.s=google header.b=E22wkjxr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cumulusnetworks.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732109AbeLQJvy (ORCPT + 99 others); Mon, 17 Dec 2018 04:51:54 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:33640 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732038AbeLQJvy (ORCPT ); Mon, 17 Dec 2018 04:51:54 -0500 Received: by mail-wm1-f65.google.com with SMTP id r24so4290829wmh.0 for ; Mon, 17 Dec 2018 01:51:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cumulusnetworks.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=sIl+D+RSCNRzf5F3LiIMtk4dGuasREWKnaEe9ZC4r4o=; b=E22wkjxreCEmSbxMUzdHCLNOQ8Guvs1tMBuTAvAG0TjbjGmh+0YHvW+IDRFmCr0tgd cjAvrSQaMAUzGiuJ8KuznMIoFgabqrghozdt5BDfgbgLOQ9zS3fNd1J930ELTxM3iNPU uxG0HE7VDAD5bgWb0reyevil6KTo1WTWoXUEM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=sIl+D+RSCNRzf5F3LiIMtk4dGuasREWKnaEe9ZC4r4o=; b=ce2iDn9nohKgp6obdn7yXupCHB/gf30VWkyqaWpZmHZ1J2O8QDw0w43y4quL21yc12 WECThx6gHIYgbvo99/86Od3JY9VMhr66bgZkMpjJm68dJgdLJ7sOhVdHGGgMowEr/ius rIqMjdEUnb8NTe8qt2huzvkR7eRQYyyF+fBMk3LjjZxtTE7k9EiGNK0fQLXhCBm0TJ17 nQ0TfpPyg7P6GdWJFzQRYPrToTYwm5ZruLqiwjaw1tKAJeKwv37AFe3j4LWtw57kVTQ7 6peLnQ21MYFX3AzUIxq/7OnG2Ol0nz50d7Sp23uMACyYZ6ymyoxUqJaULQHYI5KxrSu8 Rawg== X-Gm-Message-State: AA+aEWa/Ulmqzj+mTOYVsy2v5jVW9lmSLI6zzvmCQKJN8NqDbdmW6bbE SDRw+RCE9C6So5mrvGb19Z4yQg== X-Received: by 2002:a1c:2643:: with SMTP id m64mr10862519wmm.22.1545040312552; Mon, 17 Dec 2018 01:51:52 -0800 (PST) Received: from ?IPv6:2001:470:1f0a:1832::2? (nikaleksandrov-1-pt.tunnel.tserv6.fra1.ipv6.he.net. [2001:470:1f0a:1832::2]) by smtp.gmail.com with ESMTPSA id e27sm16623159wra.67.2018.12.17.01.51.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Dec 2018 01:51:52 -0800 (PST) Subject: Re: [PATCH net-next] net: bridge: remove unneeded variable 'err' To: YueHaibing , davem@davemloft.net, roopa@cumulusnetworks.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bridge@lists.linux-foundation.org References: <20181217094623.32668-1-yuehaibing@huawei.com> From: Nikolay Aleksandrov Message-ID: Date: Mon, 17 Dec 2018 11:51:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: <20181217094623.32668-1-yuehaibing@huawei.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/12/2018 11:46, YueHaibing wrote: > function br_multicast_toggle now always return 0, > so the variable 'err' is unneeded. > Also cleanup dead branch in br_changelink. > > Signed-off-by: YueHaibing > --- > net/bridge/br_multicast.c | 3 +-- > net/bridge/br_netlink.c | 4 +--- > 2 files changed, 2 insertions(+), 5 deletions(-) > That is correct, but in such case just make it void.