All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] Removing condition that will never be met after calls xmalloc and xrealloc
       [not found] <20200303035649.GA726@kexec.lxd>
@ 2020-04-01 12:44 ` Simon Horman
  0 siblings, 0 replies; only message in thread
From: Simon Horman @ 2020-04-01 12:44 UTC (permalink / raw)
  To: Leonidas S. Barbosa; +Cc: kexec

On Tue, Mar 03, 2020 at 03:56:49AM +0000, Leonidas S. Barbosa wrote:
> 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>

Thanks, applied.

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-01 12:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20200303035649.GA726@kexec.lxd>
2020-04-01 12:44 ` [PATCH] Removing condition that will never be met after calls xmalloc and xrealloc Simon Horman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.