Removed redundant NULL check for b in wpabuf_concat()

Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
This commit is contained in:
Nishant Chaprana 2016-10-28 12:12:04 +05:30 committed by Jouni Malinen
parent 641c73f84f
commit 230b2b2c3d

View file

@ -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);