Removed redundant NULL check for b in wpabuf_concat()
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
This commit is contained in:
parent
641c73f84f
commit
230b2b2c3d
1 changed files with 2 additions and 4 deletions
|
@ -244,14 +244,12 @@ struct wpabuf * wpabuf_concat(struct wpabuf *a, struct wpabuf *b)
|
||||||
|
|
||||||
if (a)
|
if (a)
|
||||||
len += wpabuf_len(a);
|
len += wpabuf_len(a);
|
||||||
if (b)
|
|
||||||
len += wpabuf_len(b);
|
len += wpabuf_len(b);
|
||||||
|
|
||||||
n = wpabuf_alloc(len);
|
n = wpabuf_alloc(len);
|
||||||
if (n) {
|
if (n) {
|
||||||
if (a)
|
if (a)
|
||||||
wpabuf_put_buf(n, a);
|
wpabuf_put_buf(n, a);
|
||||||
if (b)
|
|
||||||
wpabuf_put_buf(n, b);
|
wpabuf_put_buf(n, b);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue