Skip to contentSkip to conversation

befs: remove check for CONFIG_BEFS_RW

PATCH New Paul Bolle 1 participant 1 message May 27, 2014 Befs file system

lore
Share & tools
lore

Paul Bolle

author
#0 lore raw

PATCH 1/1 befs: remove check for CONFIG_BEFS_RW

Befs contains a check for CONFIG_BEFS_RW for over a decade now. The related Kconfig symbol never existed, so this check always evaluated to true. Remove it.

---
Compile tested. Does this still qualify as trivial?

 fs/befs/linuxvfs.c | 2 --
 1 file changed, 2 deletions(-)
fs/befs/linuxvfs.c +0 -2
index d626756ff721..46149526b580 100644
@@ -808,13 +808,11 @@ befs_fill_super(struct super_block *sb, void *data, int silent)
 
 	befs_debug(sb, "---> %s", __func__);
 
-#ifndef CONFIG_BEFS_RW
 	if (!(sb->s_flags & MS_RDONLY)) {
 		befs_warning(sb,
 			     "No write support. Marking filesystem read-only");
 		sb->s_flags |= MS_RDONLY;
 	}
-#endif				/* CONFIG_BEFS_RW */
 
 	/*
 	 * Set dummy blocksize to read super block.
Signature · 1 line
1.9.3