Skip to contentSkip to conversation

Removing condition that will never be met after calls xmalloc and xrealloc

PATCH Simon Horman 1 participant 1 message Apr 1, 2020 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Simon Horman

author Applied
#1 lore raw
In reply to a message not in the archive
Quoted 9 lines · Leonidas S. Barbosa

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.

Quoted 5 lines

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.

Thanks, applied.

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec