kexec: Use min() and min_t() to simplify logic
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Tue, 30 Apr 2013 22:28:23 +0000 (15:28 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 May 2013 00:04:07 +0000 (17:04 -0700)
commit31c3a3fe0777642816045a8dd1b666f1718851d7
tree09995a2cfce420c77b2403acf1a73d25c99a7a78
parent310faaa9b2d075b8fd477550c3d85ccddec76f35
kexec: Use min() and min_t() to simplify logic

Simplify the logic of variable assignments.

[akpm@linux-foundation.org: replace min_t with min, remove unneeded casts]
Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Reviewed-by: Simon Horman <horms@verge.net.au>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/kexec.c