diff options
author | Simon Horman <horms@verge.net.au> | 2006-09-22 16:45:33 +0900 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2006-10-06 12:46:16 +0900 |
commit | 623f842058e343204073849a5c0e8bff9c35e974 (patch) | |
tree | 4d281583834b7a8026f58577132c5f8374b7da94 /purgatory/string.c | |
parent | c506e2859d2b890bd6ada04fa11e434ba5d87b1e (diff) |
kexec-ktools: simplify segment walk logic in patch_efi_memmap()
There is a farily complex if, for construct in patch_efi_memmap(),
that seems to be simplifyable to a somewhat simpler while statement.
Note that this does change the logic statement. In particular
the original code has if (seg->end < mend) towards the end,
and the new code effectively replaces this with if (seg->end <= mend).
However, in the original code this is copled with a separate
if (seg->end > mend) check at the begining, so I believe that
this is actually a minor (possibly never seen) logic error in
the original code. The node code just always checks (seg->end > mend).
Signed-Off-By: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'purgatory/string.c')
0 files changed, 0 insertions, 0 deletions