projects
/
oweals
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ea07e4
)
remove unnecessary null pointer check
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 26 Jan 2008 11:19:35 +0000
(12:19 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 26 Jan 2008 11:19:35 +0000
(12:19 +0100)
list.c
patch
|
blob
|
history
diff --git
a/list.c
b/list.c
index 066a9fd789008474e25b7aecd476857018756318..059106191de3c013d6dc850ec5b1ccd3508a70bb 100644
(file)
--- 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);