From ed971c19dfb7a07abdfe9f58ba04b31aa49d306a Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 26 Jan 2008 12:19:35 +0100 Subject: [PATCH] remove unnecessary null pointer check --- list.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/list.c b/list.c index 066a9fd..0591061 100644 --- a/list.c +++ b/list.c @@ -69,9 +69,6 @@ uci_alloc_generic(struct uci_context *ctx, int type, const char *name, int size) static void uci_free_element(struct uci_element *e) { - if (!e) - return; - if (!uci_list_empty(&e->list)) uci_list_del(&e->list); free(e); -- 2.11.0