Skip to content

Commit

Permalink
nilfs2: cleanup unused match_bool function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiro SEKIBA authored and Ryusuke Konishi committed Nov 20, 2009
1 parent 91f1953 commit e2073e7
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions fs/nilfs2/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e2073e7

Please sign in to comment.