diff options
| author | Norton.Zhu <[email protected]> | 2016-01-14 15:17:09 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2016-01-14 16:00:49 -0800 |
| commit | 3eb5bdf0f47726e3ef0a875e0cce3cca462ee70d (patch) | |
| tree | 7a6fcc72a9ad8f328901a30291ce7a4d224d56b1 /tools/perf/scripts/python/bin | |
| parent | 2886357b24662fcf7dc138c9d5e3166e99a55750 (diff) | |
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 <[email protected]>
Reviewed-by: Joseph Qi <[email protected]>
Cc: Gang He <[email protected]>
Cc: Mark Fasheh <[email protected]>
Acked-by: Joel Becker <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions