Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1255106pxj; Fri, 18 Jun 2021 03:08:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvALjEoAIxcXpLRw4B166ryYmJa2+lW9ehgXbn4JpHoe+8DaMqG2HYKZ6EedB7fan5rpX2 X-Received: by 2002:a17:906:c302:: with SMTP id s2mr10108527ejz.151.1624010931003; Fri, 18 Jun 2021 03:08:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624010930; cv=none; d=google.com; s=arc-20160816; b=NPHoVtWOTMr3ZMlvEYWFA3LWScTlZKVpylh+evX62O+5XtRUfvhT/O1NHTUeldLPch +WKVHJJhwX2doE7VdxDvzHir6tm9Gw2oh7JyAtzNctuMQ1ywo5Vv9iNHL5IA6IZAA40w DRGxfodgwcbdD9n/obAN0XdzNEKPKvXfZ2QaYc+V6UrTMSNrZKGpYRrlrCy1MJqGBWMB /HqR0kuaPWrR988ysx4cMEbDjWkvXQh3WTmZN8qoXN7lqs7dj3lyFcbTqQFvXM0knQok 5eZ2XrB0EQsI3gJLLO3K9qJ2QKsq8k6nnCcIkomCdNiEugG4cYeZPpwktufH3rGRY3zF UWOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=+DI3wozvSX+M2ZCtcqmk4X9oKPgUWzvrFhxYDkU3wiw=; b=K9mGm13E/82J7lUkBJrojXuYjKiMFYK4Z7PaiFrXv5UqqyBzKwj7YwFxjHxWQAwBfe NogBpYD0PAS/9mM/nCQ9IJMMlX7BxIjXUvLwZn/t/ISSiUHRatTvVQT9vYhgBOfd/3Fi X07kitPZvZMke5ZLyavlghW7jMOM5qX+VaMYfUaUSC4F37JRA7vNh9XfO7sMFnarDFfq unUJxhycLKdAG1pCANEjyKyF6uzbEfVMvwYFqOg21W6MXvG5ToWH6jBUZfgcUAdhHV46 fJKDIfMcLWD39IL62VASSqnyHcsyKV6sa46frlGw4WH6rrlf8Jse4a9Cfsu7v9UaTlJz Jylg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s22si8326479edd.532.2021.06.18.03.08.28; Fri, 18 Jun 2021 03:08:50 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233362AbhFRKFK (ORCPT + 99 others); Fri, 18 Jun 2021 06:05:10 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:50180 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233259AbhFRKEM (ORCPT ); Fri, 18 Jun 2021 06:04:12 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1luBJz-0007K2-Re; Fri, 18 Jun 2021 10:01:55 +0000 From: Colin King To: Roopa Prabhu , "David S . Miller" , Jakub Kicinski , bridge@lists.linux-foundation.org, netdev@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: bridge: remove redundant continue statement Date: Fri, 18 Jun 2021 11:01:55 +0100 Message-Id: <20210618100155.101386-1-colin.king@canonical.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King The continue statement at the end of a for-loop has no effect, invert the if expression and remove the continue. Addresses-Coverity: ("Continue has no effect") Signed-off-by: Colin Ian King --- net/bridge/br_vlan.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/net/bridge/br_vlan.c b/net/bridge/br_vlan.c index da3256a3eed0..8789a57af543 100644 --- a/net/bridge/br_vlan.c +++ b/net/bridge/br_vlan.c @@ -113,9 +113,7 @@ static void __vlan_add_list(struct net_bridge_vlan *v) headp = &vg->vlan_list; list_for_each_prev(hpos, headp) { vent = list_entry(hpos, struct net_bridge_vlan, vlist); - if (v->vid < vent->vid) - continue; - else + if (v->vid >= vent->vid) break; } list_add_rcu(&v->vlist, hpos); -- 2.31.1