diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-07-25 12:06:20 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-09-04 15:39:40 +0200 |
commit | d170e4aa1147a6cef7264fa69663e38f42d4a5fc (patch) | |
tree | 8cdca72a4899ab74978ad3d9504ed22dfe11229c /isp | |
parent | f0ecaf49c1630cdce3dd706264675f8e2ab5c418 (diff) |
list.h: Add list_empty macro
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'isp')
-rw-r--r-- | isp/list.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -36,6 +36,11 @@ static inline void list_init(struct list_entry *list) list->prev = list; } +static inline int list_empty(struct list_entry *list) +{ + return list->next == list; +} + static inline void list_append(struct list_entry *entry, struct list_entry *list) { entry->next = list; |