summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2024-10-19 09:21:41 -0600
committerSimon Glass <[email protected]>2024-11-02 11:13:59 -0600
commita8c07ac4970d92dce76d93e61fdddb7f3bea65e4 (patch)
tree4e86f314a101d88021260a3b7a3a9614c8d82611 /include
parente61ea9f2e5d2967826c2c6e3edba961064fbbaa1 (diff)
alist: Mention the error condition in alist_add_placeholder()
Update the function comment to note that this function can return NULL if it runs out of memory. Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/alist.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/alist.h b/include/alist.h
index 68d268f01af..0343946bc4a 100644
--- a/include/alist.h
+++ b/include/alist.h
@@ -151,8 +151,9 @@ void *alist_ensure_ptr(struct alist *lst, uint index);
* alist_add_placeholder() - Add a new item to the end of the list
*
* @lst: alist to add to
- * Return: Pointer to the newly added position. Note that this is not inited so
- * the caller must copy the requested struct to the returned pointer
+ * Return: Pointer to the newly added position, or NULL if out of memory. Note
+ * that this is not inited so the caller must copy the requested struct to the
+ * returned pointer
*/
void *alist_add_placeholder(struct alist *lst);