Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp413900pxv; Thu, 24 Jun 2021 10:38:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqu2TEALielh2N/La7hmfz5Q6mdOfN2JhYtXfky2IyjEIZdOBiznuERwM8+Oxv2ntndkBf X-Received: by 2002:a17:906:d149:: with SMTP id br9mr6249626ejb.508.1624556303896; Thu, 24 Jun 2021 10:38:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624556303; cv=none; d=google.com; s=arc-20160816; b=s7MFE7mH5e9wasROliqYsDXz+ih7rbMH8MxRYqXpB3Ghm7NcObf7ox0enag19/uKnW okgOKZd4fBpBHb2xxcxwxN8usKNrZxF+1GUTZ0U3R9l3VPKXU8umhixxHE7AQ6d8Aqdw eyxeAk/j8M3pucY7n6MDgdiKI+gQXNUGddzqFFyAzvk3BC1MJbpBC8v4ioD/Euo+PNNK asroznm9ObjFzZV1Mf8W21T48sah7dzhsmOFrUA5BT8NE2luRwBson+5r0GVyeJAZz7g nSCWi4HCq/oEo88FQ7z4uGxU3kq002F3B4gLnIKDtadC3qDYU3RrlBpZDxxHwYJIrjLe xs6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=+1dHCIjVGu+VUQzg64ApXX1v4ulkFxMzGJoEo7mlEN8=; b=tj5agyFdulx3bkkDM9Y3w/pvnvXTD6OIzHG7t7c5ghyHh5N/9vl35GDnA69POANPxf E5aatCGUJkTMl/VgA4htAL3GfgbpBnBfSg9aqVbhqU93ZIX9JEp5n4wHRLN5d1YkPT2Q 3WAR4XDjwKk0WNeMoo7H9k6rzbYr9kyxp3uwYGn5w9rIgNbT+dx370BRJ3m4fwcd118m lTMBIuHSJSQhsMUqrwpkqisL/hgUKFUUoTDLWSY93hvqlpZwkFA7zJOXvpvfIUM2dRjv OehxC9X3yQg7Itd5HdatitD3VLVQenAZCN0+2gIkqC6HDBKoaG7Q44feb9IGLwVPYv3e kiiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AARHRFZK; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q26si3398194edw.295.2021.06.24.10.38.00; Thu, 24 Jun 2021 10:38:23 -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=@gmail.com header.s=20161025 header.b=AARHRFZK; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232192AbhFXRhL (ORCPT + 99 others); Thu, 24 Jun 2021 13:37:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229721AbhFXRhK (ORCPT ); Thu, 24 Jun 2021 13:37:10 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DF60C061574; Thu, 24 Jun 2021 10:34:51 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id mj3so3336498ejb.4; Thu, 24 Jun 2021 10:34:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+1dHCIjVGu+VUQzg64ApXX1v4ulkFxMzGJoEo7mlEN8=; b=AARHRFZK4+BCpIFSAR4Ai01+dvIC2tHWRomTVTb1qj8A98A4rj7a7RL0a1YxshGXjS ylJERtxccirnh2JtFVERSbZqjqFkZv151h58DU7fxtNvk1ymxTwBWWxeK4CRSorRYFX3 ZH3KmSFqkl+0HpUw+VOEJPP+aZsXVDgdooZjimavAs28OTJ+5nW7jqV+w2VtbIyI875S JDEA8jR5UG1z465hHft34VuKxHIYrEfwcZwk6JTrJ/qGaWKaRZPXFasqE5z8e2nzzQMG uXVmd7OVicFr2VZlaFpLatGxVSRkMPTjImm4rK45atjpd8bgjoYlhpjMHni+J2lrE74m 44vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+1dHCIjVGu+VUQzg64ApXX1v4ulkFxMzGJoEo7mlEN8=; b=YULjqUZyxxazIk8p+0A/+qIXMwMwKdDJDfAPBrh+IUiB2lRqcaJOulpFqach9816zQ qIxoKUoZqcWZ4UTgEGMV00HJim2I1YbCuaC0+BLJfA9wvl4ax3b8SBiWvHT1WlCA4T2W 0KMl0wrGO3DFi0KjjSwv2EajNCT4HiKQRWVxIE3Y1e+c7AYTIq3cyFtj83vmINI+kHNr oY9ZDRkRpJpCJwUcARgwWqvHLoM6yoQLtR75oK6KAWjj0bJ9cSADENQaLWpybz3QWptx FJVLdOrVOqtfJ9nuiLYwhwqKLeEYuGehzVeYaebXyIWMfGy9YEM93Su726nTWFOuh7JF Dd0w== X-Gm-Message-State: AOAM533cPMkcaPFR4UUePffJVONIA7m2J+YNUB8EwzUclj7lPbdoZxqb TB9tzfCVyW9KOqG8Eeb5HB5pMjynjP5nsK3jCOM= X-Received: by 2002:a17:906:3d3:: with SMTP id c19mr6297403eja.202.1624556090041; Thu, 24 Jun 2021 10:34:50 -0700 (PDT) MIME-Version: 1.0 References: <20210621100519.10257-1-colin.king@canonical.com> In-Reply-To: <20210621100519.10257-1-colin.king@canonical.com> From: Ryusuke Konishi Date: Fri, 25 Jun 2021 02:34:38 +0900 Message-ID: Subject: Re: [PATCH] nilfs2: remove redundant continue statement in a while-loop To: Colin King Cc: linux-nilfs , kernel-janitors@vger.kernel.org, LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thank you. This change is correct also in view of the expected behavior of the function (it really is unnecessary). I will send this to upstream. Regards, Ryusuke Konishi On Mon, Jun 21, 2021 at 7:05 PM Colin King wrote: > > From: Colin Ian King > > The continue statement at the end of the while-loop is redundant, > remove it. > > Addresses-Coverity: ("Continue has no effect") > Signed-off-by: Colin Ian King > --- > fs/nilfs2/btree.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/fs/nilfs2/btree.c b/fs/nilfs2/btree.c > index f42ab57201e7..ab9ec073330f 100644 > --- a/fs/nilfs2/btree.c > +++ b/fs/nilfs2/btree.c > @@ -738,7 +738,6 @@ static int nilfs_btree_lookup_contig(const struct nilfs_bmap *btree, > if (ptr2 != ptr + cnt || ++cnt == maxblocks) > goto end; > index++; > - continue; > } > if (level == maxlevel) > break; > -- > 2.31.1 >