diff options
author | Maninder Singh <maninder1.s@samsung.com> | 2015-06-01 10:38:07 +0000 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-06-07 18:19:43 +0200 |
commit | 0fabedf085591b50994e4f8c133bfa87f1777ee4 (patch) | |
tree | 8308679426e463e68eb9f61cf5883c03c437c79d /scripts/kconfig/confdata.c | |
parent | d90899206dd96b4c18064c18afc3b856382e64d4 (diff) | |
download | busybox-w32-0fabedf085591b50994e4f8c133bfa87f1777ee4.tar.gz busybox-w32-0fabedf085591b50994e4f8c133bfa87f1777ee4.tar.bz2 busybox-w32-0fabedf085591b50994e4f8c133bfa87f1777ee4.zip |
fix if(p)/free(p) construct
No need of explicit NULL check before free.
Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Signed-off-by: Akhilesh Kumar <akhilesh.k@samsung.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts/kconfig/confdata.c')
-rw-r--r-- | scripts/kconfig/confdata.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c index 303df0be7..8f4ecbd33 100644 --- a/scripts/kconfig/confdata.c +++ b/scripts/kconfig/confdata.c | |||
@@ -124,8 +124,7 @@ int conf_read_simple(const char *name) | |||
124 | case S_INT: | 124 | case S_INT: |
125 | case S_HEX: | 125 | case S_HEX: |
126 | case S_STRING: | 126 | case S_STRING: |
127 | if (sym->user.val) | 127 | free(sym->user.val); |
128 | free(sym->user.val); | ||
129 | default: | 128 | default: |
130 | sym->user.val = NULL; | 129 | sym->user.val = NULL; |
131 | sym->user.tri = no; | 130 | sym->user.tri = no; |