summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJiro SEKIBA <jir@unicus.jp>2009-11-12 14:07:27 +0900
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2009-11-20 10:05:47 +0900
commite2073e78575e3690ea3cce67b11b7b1de8e85fd3 (patch)
tree46a43afec32b87abac0967bb5b19dec0a8708f3d /fs
parent91f1953bf3243a4215b57d8e2f317a7035924de7 (diff)
nilfs2: cleanup unused match_bool function
match_bool function is not used anymore. Signed-off-by: Jiro SEKIBA <jir@unicus.jp> Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs')
-rw-r--r--fs/nilfs2/super.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c
index 02dcbb00867..b6837f48636 100644
--- a/fs/nilfs2/super.c
+++ b/fs/nilfs2/super.c
@@ -582,19 +582,6 @@ static match_table_t tokens = {
{Opt_err, NULL}
};
-static int match_bool(substring_t *s, int *result)
-{
- int len = s->to - s->from;
-
- if (strncmp(s->from, "on", len) == 0)
- *result = 1;
- else if (strncmp(s->from, "off", len) == 0)
- *result = 0;
- else
- return 1;
- return 0;
-}
-
static int parse_options(char *options, struct super_block *sb)
{
struct nilfs_sb_info *sbi = NILFS_SB(sb);