diff options
author | 2016-01-14 15:17:09 -0800 | |
---|---|---|
committer | 2016-01-14 16:00:49 -0800 | |
commit | 3eb5bdf0f47726e3ef0a875e0cce3cca462ee70d (patch) | |
tree | 7a6fcc72a9ad8f328901a30291ce7a4d224d56b1 /include/linux/dcache.h | |
parent | logfs: fix logfs build errors and dependencies (diff) | |
download | wireguard-linux-3eb5bdf0f47726e3ef0a875e0cce3cca462ee70d.tar.xz wireguard-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 'include/linux/dcache.h')
0 files changed, 0 insertions, 0 deletions