Skip to contentSkip to conversation

bcachefs: remove unneeded semicolon

PATCH In review Jiapeng Chong 2 participants 3 messages Apr 15, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bcachefs: remove unneeded semicolon

No functional modification involved.

./fs/bcachefs/super.c:1128:59-60: Unneeded semicolon. ./fs/bcachefs/super.c:1133:59-60: Unneeded semicolon.

---
 fs/bcachefs/super.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/bcachefs/super.c +2 -2
index 8daf80a38d60..234f19ea8f30 100644
@@ -1125,12 +1125,12 @@ static int bch2_dev_in_fs(struct bch_sb_handle *fs,
 
 		prt_bdevname(&buf, fs->bdev);
 		prt_char(&buf, ' ');
-		bch2_prt_datetime(&buf, le64_to_cpu(fs->sb->write_time));;
+		bch2_prt_datetime(&buf, le64_to_cpu(fs->sb->write_time));
 		prt_newline(&buf);
 
 		prt_bdevname(&buf, sb->bdev);
 		prt_char(&buf, ' ');
-		bch2_prt_datetime(&buf, le64_to_cpu(sb->sb->write_time));;
+		bch2_prt_datetime(&buf, le64_to_cpu(sb->sb->write_time));
 		prt_newline(&buf);
 
 		if (!opts->no_splitbrain_check)
Signature · 1 line
2.20.1.7.g153144c
#1 lore raw

Maybe it is not enough, you can use "grep -rn ');;' fs/bcachefs/" to find out all the same format.

Quoted 31 lines · Jiapeng Chong

No functional modification involved.

./fs/bcachefs/super.c:1128:59-60: Unneeded semicolon. ./fs/bcachefs/super.c:1133:59-60: Unneeded semicolon.

---
  fs/bcachefs/super.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
fs/bcachefs/super.c +2 -2
index 8daf80a38d60..234f19ea8f30 100644
@@ -1125,12 +1125,12 @@ static int bch2_dev_in_fs(struct bch_sb_handle *fs,
 
  		prt_bdevname(&buf, fs->bdev);
  		prt_char(&buf, ' ');
-		bch2_prt_datetime(&buf, le64_to_cpu(fs->sb->write_time));;
+		bch2_prt_datetime(&buf, le64_to_cpu(fs->sb->write_time));
  		prt_newline(&buf);
 
  		prt_bdevname(&buf, sb->bdev);
  		prt_char(&buf, ' ');
-		bch2_prt_datetime(&buf, le64_to_cpu(sb->sb->write_time));;
+		bch2_prt_datetime(&buf, le64_to_cpu(sb->sb->write_time));
  		prt_newline(&buf);
 
  		if (!opts->no_splitbrain_check)
#2 lore raw
In reply to Jiapeng Chong

I remember other people also submit this likely patch:

https://lore.kernel.org/linux-bcachefs/[email protected]/

https://lore.kernel.org/linux-bcachefs/[email protected]/

Quoted 31 lines · Jiapeng Chong

No functional modification involved.

./fs/bcachefs/super.c:1128:59-60: Unneeded semicolon. ./fs/bcachefs/super.c:1133:59-60: Unneeded semicolon.

---
  fs/bcachefs/super.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
fs/bcachefs/super.c +2 -2
index 8daf80a38d60..234f19ea8f30 100644
@@ -1125,12 +1125,12 @@ static int bch2_dev_in_fs(struct bch_sb_handle *fs,
 
  		prt_bdevname(&buf, fs->bdev);
  		prt_char(&buf, ' ');
-		bch2_prt_datetime(&buf, le64_to_cpu(fs->sb->write_time));;
+		bch2_prt_datetime(&buf, le64_to_cpu(fs->sb->write_time));
  		prt_newline(&buf);
 
  		prt_bdevname(&buf, sb->bdev);
  		prt_char(&buf, ' ');
-		bch2_prt_datetime(&buf, le64_to_cpu(sb->sb->write_time));;
+		bch2_prt_datetime(&buf, le64_to_cpu(sb->sb->write_time));
  		prt_newline(&buf);
 
  		if (!opts->no_splitbrain_check)