mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01:00
dm: tag: change ENOSPC to ENOMEM
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>
This commit is contained in:
parent
990f6636ea
commit
a806f33401
@ -29,7 +29,7 @@ int dev_tag_set_ptr(struct udevice *dev, enum dm_tag_t tag, void *ptr)
|
|||||||
|
|
||||||
node = calloc(sizeof(*node), 1);
|
node = calloc(sizeof(*node), 1);
|
||||||
if (!node)
|
if (!node)
|
||||||
return -ENOSPC;
|
return -ENOMEM;
|
||||||
|
|
||||||
node->dev = dev;
|
node->dev = dev;
|
||||||
node->tag = tag;
|
node->tag = tag;
|
||||||
@ -53,7 +53,7 @@ int dev_tag_set_val(struct udevice *dev, enum dm_tag_t tag, ulong val)
|
|||||||
|
|
||||||
node = calloc(sizeof(*node), 1);
|
node = calloc(sizeof(*node), 1);
|
||||||
if (!node)
|
if (!node)
|
||||||
return -ENOSPC;
|
return -ENOMEM;
|
||||||
|
|
||||||
node->dev = dev;
|
node->dev = dev;
|
||||||
node->tag = tag;
|
node->tag = tag;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user