diff options
author | Rob Landley | 2006-03-16 14:40:27 +0000 |
---|---|---|
committer | Rob Landley | 2006-03-16 14:40:27 +0000 |
commit | ea9a471acd94f604f360ea16df5896e795361ac7 (patch) | |
tree | 780bf71b23a4d2565820b8ed0f57ef2750de5e72 /libbb/llist.c | |
parent | 187e352b7ff29dad9ef30cb8a721f4b96d6bbedc (diff) | |
download | busybox-ea9a471acd94f604f360ea16df5896e795361ac7.zip busybox-ea9a471acd94f604f360ea16df5896e795361ac7.tar.gz |
Random in-passing tweak.
Diffstat (limited to 'libbb/llist.c')
-rw-r--r-- | libbb/llist.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libbb/llist.c b/libbb/llist.c index af0a994..5b70d66 100644 --- a/libbb/llist.c +++ b/libbb/llist.c @@ -53,12 +53,8 @@ llist_t *llist_add_to_end(llist_t *list_head, char *data) llist_t *llist_free_one(llist_t *elm) { llist_t *next = elm ? elm->link : NULL; -#if ENABLE_DMALLOC /* avoid warnings from dmalloc's error-free-null option */ - if (elm) -#endif - free(elm); - elm = next; - return elm; + free(elm); + return next; } #endif |