Random in-passing tweak.
authorRob Landley <rob@landley.net>
Thu, 16 Mar 2006 14:40:27 +0000 (14:40 -0000)
committerRob Landley <rob@landley.net>
Thu, 16 Mar 2006 14:40:27 +0000 (14:40 -0000)
libbb/llist.c

index af0a9948cfdd5a8b7faafb88fb969d5ab4f31b9e..5b70d6628ce89125c8b529b16267373ce9da12d5 100644 (file)
@@ -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