aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorNishant Chaprana <n.chaprana@samsung.com>2016-10-28 06:42:04 (GMT)
committerJouni Malinen <j@w1.fi>2016-10-28 16:05:08 (GMT)
commit230b2b2c3d05b3ee9fe4dd1b6ea60bbb17fc5b87 (patch)
treefc76f4c6c77afe405cbe52743be2755a10a486c2 /src/utils
parent641c73f84f3abda6ca66ced0f6271b596cc82476 (diff)
downloadhostap-230b2b2c3d05b3ee9fe4dd1b6ea60bbb17fc5b87.zip
hostap-230b2b2c3d05b3ee9fe4dd1b6ea60bbb17fc5b87.tar.gz
hostap-230b2b2c3d05b3ee9fe4dd1b6ea60bbb17fc5b87.tar.bz2
Removed redundant NULL check for b in wpabuf_concat()
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/wpabuf.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/utils/wpabuf.c b/src/utils/wpabuf.c
index 96cb25c..77ee472 100644
--- a/src/utils/wpabuf.c
+++ b/src/utils/wpabuf.c
@@ -244,15 +244,13 @@ struct wpabuf * wpabuf_concat(struct wpabuf *a, struct wpabuf *b)
if (a)
len += wpabuf_len(a);
- if (b)
- len += wpabuf_len(b);
+ len += wpabuf_len(b);
n = wpabuf_alloc(len);
if (n) {
if (a)
wpabuf_put_buf(n, a);
- if (b)
- wpabuf_put_buf(n, b);
+ wpabuf_put_buf(n, b);
}
wpabuf_free(a);