diff options
author | Dave Young <dyoung@redhat.com> | 2011-11-08 13:26:23 +0800 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2011-11-09 09:34:30 +0900 |
commit | b9b3df355fd230ff8ca0e82bbd90c9c1b0d9c32e (patch) | |
tree | 8d3e186db6bed0ced7a7428dfbc52d12c21884b6 | |
parent | b84fcdd48cbe70e54e66f2cf1b251e0db58f04f4 (diff) | |
download | kexec-tools-b9b3df355fd230ff8ca0e82bbd90c9c1b0d9c32e.tar.gz |
remove unnecessary check code for hole_align
hole_align == 0 check is not neccesary, because it will be set to
pagesize if it's zero. Just remove it here.
Signed-off-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | kexec/kexec.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/kexec/kexec.c b/kexec/kexec.c index 2515c07f..abbe940c 100644 --- a/kexec/kexec.c +++ b/kexec/kexec.c @@ -203,10 +203,6 @@ unsigned long locate_hole(struct kexec_info *info, /* Set an intial invalid value for the hole base */ hole_base = ULONG_MAX; - /* Ensure I have a sane alignment value */ - if (hole_align == 0) { - hole_align = 1; - } /* Align everything to at least a page size boundary */ if (hole_align < (unsigned long)getpagesize()) { hole_align = getpagesize(); |