diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2022-04-15 16:15:35 +0900 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-04-23 22:05:34 +0200 |
commit | a806f334018cdb0be8f007fa482b695ef136b061 (patch) | |
tree | 506af908cbcd5739440085d0b8fa4d406e482d55 | |
parent | 990f6636eae1718b785a39c300f466fd41985c55 (diff) | |
download | u-boot-a806f334018cdb0be8f007fa482b695ef136b061.zip u-boot-a806f334018cdb0be8f007fa482b695ef136b061.tar.gz u-boot-a806f334018cdb0be8f007fa482b695ef136b061.tar.bz2 |
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>
-rw-r--r-- | drivers/core/tag.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/core/tag.c b/drivers/core/tag.c index 6829bcd..2299919 100644 --- a/drivers/core/tag.c +++ b/drivers/core/tag.c @@ -29,7 +29,7 @@ int dev_tag_set_ptr(struct udevice *dev, enum dm_tag_t tag, void *ptr) node = calloc(sizeof(*node), 1); if (!node) - return -ENOSPC; + return -ENOMEM; node->dev = dev; 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); if (!node) - return -ENOSPC; + return -ENOMEM; node->dev = dev; node->tag = tag; |