diff options
author | 2012-12-21 11:47:05 +0900 | |
---|---|---|
committer | 2012-12-28 11:24:09 +0900 | |
commit | 12a67146e35ba1d04ac4a5430eaaa8790158d60e (patch) | |
tree | 9a3a2c0768d04fba20e0be8cc07f9cb6ae4a71c5 /fs/f2fs/super.c | |
parent | f2fs: invalidate the node page if allocation is failed (diff) | |
download | linux-12a67146e35ba1d04ac4a5430eaaa8790158d60e.tar.gz linux-12a67146e35ba1d04ac4a5430eaaa8790158d60e.tar.bz2 linux-12a67146e35ba1d04ac4a5430eaaa8790158d60e.zip |
f2fs: return a default value for non-void function
This patch resolves a build warning reported by kbuild test robot.
"
fs/f2fs/segment.c: In function '__get_segment_type':
fs/f2fs/segment.c:806:1: warning: control reaches end of non-void
function [-Wreturn-type]
"
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/super.c')
-rw-r--r-- | fs/f2fs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 50240d28ca24..cf0ffb800654 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -302,7 +302,7 @@ static int parse_options(struct f2fs_sb_info *sbi, char *options) case Opt_active_logs: if (args->from && match_int(args, &arg)) return -EINVAL; - if (arg != 2 && arg != 4 && arg != 6) + if (arg != 2 && arg != 4 && arg != NR_CURSEG_TYPE) return -EINVAL; sbi->active_logs = arg; break; |