diff options
author | Zhang Yanfei <zhangyanfei@cn.fujitsu.com> | 2013-02-28 01:03:17 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-28 03:10:11 (GMT) |
commit | c2c1b089b44b783bd50fae4bccaa6f367f92e492 (patch) | |
tree | 222677ea402d630ca50416dc76f9ae187d7f7acc /kernel/lockdep.c | |
parent | 87ebdc00eeb474615496d5f10eed46709e25c707 (diff) | |
download | linux-fsl-qoriq-c2c1b089b44b783bd50fae4bccaa6f367f92e492.tar.xz |
fs/proc/vmcore.c: put if tests in the top of the while loop to reduce duplication
In read_vmcore() two `if' tests are duplicated. Change the position of
them could reduce the duplication. This change does not affect the
behaviour of the function.
[akpm@linux-foundation.org: avoid `if (foo = bar)' thing, use min_t()]
[akpm@linux-foundation.org: s/max_t/min_t/]
Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/lockdep.c')
0 files changed, 0 insertions, 0 deletions