ENOMEM is a more common error code for memory starvation.
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
node = calloc(sizeof(*node), 1);
if (!node)
node = calloc(sizeof(*node), 1);
if (!node)
node->dev = dev;
node->tag = tag;
node->dev = dev;
node->tag = tag;
node = calloc(sizeof(*node), 1);
if (!node)
node = calloc(sizeof(*node), 1);
if (!node)
node->dev = dev;
node->tag = tag;
node->dev = dev;
node->tag = tag;