In ocfs2_parse_options,
a) it's better to declare variables(small size) outside of while loop;
b) 'option' will be set by match_int, 'option = 0;' makes no sense, if
   match_int failed, it just goto bail and return.
Signed-off-by: Norton.Zhu <norton.zhu@huawei.com>
Reviewed-by: Joseph Qi <joseph.qi@huawei.com>
Cc: Gang He <ghe@suse.com>
Cc: Mark Fasheh <mfasheh@suse.de>
Acked-by: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
        int status, user_stack = 0;
        char *p;
        u32 tmp;
+       int token, option;
+       substring_t args[MAX_OPT_ARGS];
 
        trace_ocfs2_parse_options(is_remount, options ? options : "(none)");
 
        }
 
        while ((p = strsep(&options, ",")) != NULL) {
-               int token, option;
-               substring_t args[MAX_OPT_ARGS];
-
                if (!*p)
                        continue;
 
                                mopt->atime_quantum = option;
                        break;
                case Opt_slot:
-                       option = 0;
                        if (match_int(&args[0], &option)) {
                                status = 0;
                                goto bail;
                                mopt->slot = (s16)option;
                        break;
                case Opt_commit:
-                       option = 0;
                        if (match_int(&args[0], &option)) {
                                status = 0;
                                goto bail;
                        mopt->commit_interval = HZ * option;
                        break;
                case Opt_localalloc:
-                       option = 0;
                        if (match_int(&args[0], &option)) {
                                status = 0;
                                goto bail;