Commit cbbee58d authored by Leonidas S. Barbosa's avatar Leonidas S. Barbosa Committed by Simon Horman
Browse files

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: default avatarLeonidas S. Barbosa <kirotawa@gmail.com>
Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
parent 618799e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment