[PATCH -next] bcachefs: Remove unneeded semicolon

Yang Li
2024-11-07T01:10:37Z

This patch removes an redundant semicolon.

./fs/bcachefs/btree_iter.c:2702:41-42: Unneeded semicolon
./fs/bcachefs/btree_cache.c:522:13-14: Unneeded semicolon

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=11751
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
fs/bcachefs/btree_cache.c | 2 +-
fs/bcachefs/btree_iter.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/bcachefs/btree_cache.c b/fs/bcachefs/btree_cache.c
index a0a406b0c7bc..c313a5bce886 100644
--- a/fs/bcachefs/btree_cache.c
+++ b/fs/bcachefs/btree_cache.c
@@ -519,7 +519,7 @@ static unsigned long bch2_btree_cache_scan(struct shrinker *shrink,
if (btree_node_accessed(b)) {
clear_btree_node_accessed(b);
bc->not_freed[BCH_BTREE_CACHE_NOT_FREED_access_bit]++;
- --touched;;
+ --touched;
} else if (!btree_node_reclaim(c, b, true)) {
__bch2_btree_node_hash_remove(bc, b);
__btree_node_data_free(bc, b);
diff --git a/fs/bcachefs/btree_iter.c b/fs/bcachefs/btree_iter.c
index b47bfcc438f3..cc13fe1d2be6 100644
--- a/fs/bcachefs/btree_iter.c
+++ b/fs/bcachefs/btree_iter.c
@@ -2699,7 +2699,7 @@ struct bkey_s_c bch2_btree_iter_peek_prev_min(struct btree_iter *iter, struct bp
}

/* Extents can straddle iter->pos: */
- iter->pos = bpos_min(iter->pos, k.k->p);;
+ iter->pos = bpos_min(iter->pos, k.k->p);

if (iter->flags & BTREE_ITER_filter_snapshots)
iter->pos.snapshot = iter->snapshot;
--
2.32.0.3.g01195cf9f