* [PATCH -next] bcachefs: Remove the unused variable block_size
@ 2025-02-24 6:34 Jiapeng Chong
0 siblings, 0 replies; only message in thread
From: Jiapeng Chong @ 2025-02-24 6:34 UTC (permalink / raw)
To: kent.overstreet; +Cc: linux-bcachefs, linux-kernel, Jiapeng Chong, Abaci Robot
Variable block_size is not effectively used, so delete it.
fs/bcachefs/super-io.c:369:6: warning: variable ‘block_size’ set but not used.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=19045
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
fs/bcachefs/super-io.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/fs/bcachefs/super-io.c b/fs/bcachefs/super-io.c
index 0edc8814eb7e..ab99a2fb9356 100644
--- a/fs/bcachefs/super-io.c
+++ b/fs/bcachefs/super-io.c
@@ -366,7 +366,6 @@ static int bch2_sb_validate(struct bch_sb_handle *disk_sb,
struct bch_sb *sb = disk_sb->sb;
struct bch_sb_field_members_v1 *mi;
enum bch_opt_id opt_id;
- u16 block_size;
int ret;
ret = bch2_sb_compatible(sb, out);
@@ -385,8 +384,6 @@ static int bch2_sb_validate(struct bch_sb_handle *disk_sb,
return -BCH_ERR_invalid_sb_features;
}
- block_size = le16_to_cpu(sb->block_size);
-
if (bch2_is_zero(sb->user_uuid.b, sizeof(sb->user_uuid))) {
prt_printf(out, "Bad user UUID (got zeroes)");
return -BCH_ERR_invalid_sb_uuid;
--
2.32.0.3.g01195cf9f
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-02-24 6:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-24 6:34 [PATCH -next] bcachefs: Remove the unused variable block_size Jiapeng Chong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®