summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2014-10-09 11:07:33 -0300
committerLucas De Marchi <lucas.demarchi@intel.com>2014-10-09 11:11:29 -0300
commiteb6f9112cfb0923d2c0a37517f9507b944626c72 (patch)
treec5e6ccc9989ec0c19a5918d2486887e52bf2fe6f
parent9a437531af61a59f5f0a96545288735f45ce6469 (diff)
downloadkmod-eb6f9112cfb0923d2c0a37517f9507b944626c72.tar.gz
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.
-rw-r--r--libkmod/libkmod-list.c16
1 files changed, 0 insertions, 16 deletions
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)
{