From: Lucas De Marchi Date: Thu, 9 Oct 2014 14:07:33 +0000 (-0300) Subject: libkmod: remove unused inline functions X-Git-Tag: v19~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb6f9112cfb0923d2c0a37517f9507b944626c72;p=platform%2Fupstream%2Fkmod.git libkmod: remove unused inline functions libkmod/libkmod-list.c:39:33: warning: unused function 'list_node_next' [-Wunused-function] static inline struct list_node *list_node_next(const struct list_node *node) ^ libkmod/libkmod-list.c:47:33: warning: unused function 'list_node_prev' [-Wunused-function] static inline struct list_node *list_node_prev(const struct list_node *node) ^ It doesn't really matter in the end result since the compiler won't generate any code for it. But let's keep it clean. It wasn't needed until now, so probably it won't be anymore. --- diff --git a/libkmod/libkmod-list.c b/libkmod/libkmod-list.c index 45f512a..de9797e 100644 --- a/libkmod/libkmod-list.c +++ b/libkmod/libkmod-list.c @@ -36,22 +36,6 @@ static inline struct list_node *list_node_init(struct list_node *node) return node; } -static inline struct list_node *list_node_next(const struct list_node *node) -{ - if (node == NULL) - return NULL; - - return node->next; -} - -static inline struct list_node *list_node_prev(const struct list_node *node) -{ - if (node == NULL) - return NULL; - - return node->prev; -} - static inline void list_node_append(struct list_node *list, struct list_node *node) {