summaryrefslogtreecommitdiff
path: root/kexec/phys_arch.c
diff options
context:
space:
mode:
authorLeonidas S. Barbosa <kirotawa@gmail.com>2020-03-03 03:56:49 +0000
committerSimon Horman <horms@verge.net.au>2020-04-01 14:44:35 +0200
commitcbbee58d9f57765e50b12ce18aabbe90390ec640 (patch)
treecc9f400e5bd6b0c8f5fbdf0add49cc29516d0d13 /kexec/phys_arch.c
parent618799e90566e22554584644e496ff95f425ac48 (diff)
Removing condition that will never be met after calls xmalloc and xrealloc
Hi, Looking in the kexec-tools code I found these conditions that seems will never be met. Not sure if that was intentional for explicitity, if it was the case, please disconsider this patch. xmalloc and xrealloc when fails calls die() that calls exit(1). Checks for if(!memory) after they are called will never be met that condition, since the process will be exited after an allocation fail. Signed-off-by: Leonidas S. Barbosa <kirotawa@gmail.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/phys_arch.c')
0 files changed, 0 insertions, 0 deletions