From: Zhang Yanfei Date: Thu, 28 Feb 2013 01:03:17 +0000 (-0800) Subject: fs/proc/vmcore.c: put if tests in the top of the while loop to reduce duplication X-Git-Tag: v3.9-rc1~46^2~133 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2c1b089b44b783bd50fae4bccaa6f367f92e492;p=pandora-kernel.git 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 Cc: "Eric W. Biederman" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed