summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/file.c
diff options
context:
space:
mode:
authorNorton.Zhu2016-01-15 00:17:09 +0100
committerLinus Torvalds2016-01-15 01:00:49 +0100
commit3eb5bdf0f47726e3ef0a875e0cce3cca462ee70d (patch)
tree7a6fcc72a9ad8f328901a30291ce7a4d224d56b1 /fs/ocfs2/file.c
parentlogfs: fix logfs build errors and dependencies (diff)
downloadkernel-qcow2-linux-3eb5bdf0f47726e3ef0a875e0cce3cca462ee70d.tar.gz
kernel-qcow2-linux-3eb5bdf0f47726e3ef0a875e0cce3cca462ee70d.tar.xz
kernel-qcow2-linux-3eb5bdf0f47726e3ef0a875e0cce3cca462ee70d.zip
ocfs2: optimize bad declarations and redundant assignment
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>
Diffstat (limited to 'fs/ocfs2/file.c')
0 files changed, 0 insertions, 0 deletions