Skip to contentSkip to conversation

nilfs2: remove redundant continue statement in a while-loop

PATCH Applied Ryusuke Konishi 1 participant 2 messages Jun 24, 2021 NILFS2 filesystem

lore
Share & tools
lore

Ryusuke Konishi

author maintainer
#0 lore raw

PATCH 1/1 nilfs2: remove redundant continue statement in a while-loop

From: Colin Ian King <[email protected]>

The continue statement at the end of the while-loop is redundant, remove it.

Addresses-Coverity: ("Continue has no effect")

---
 fs/nilfs2/btree.c | 1 -
 1 file changed, 1 deletion(-)
fs/nilfs2/btree.c +0 -1
index f42ab57201e7..ab9ec073330f 100644
@@ -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;
Signature · 1 line
1.8.3.1
author maintainer
#1 lore raw

Hi Andrew,

Please queue this for the next merge window.

Thank you,
Ryusuke Konishi

Quoted 29 lines · Ryusuke Konishi

From: Colin Ian King <[email protected]>

The continue statement at the end of the while-loop is redundant, remove it.

Addresses-Coverity: ("Continue has no effect")

---
 fs/nilfs2/btree.c | 1 -
 1 file changed, 1 deletion(-)
fs/nilfs2/btree.c +0 -2
index f42ab57201e7..ab9ec073330f 100644
@@ -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;
--

1.8.3.1