From: Nishant Chaprana Date: Fri, 28 Oct 2016 06:42:04 +0000 (+0530) Subject: Removed redundant NULL check for b in wpabuf_concat() X-Git-Tag: hostap_2_7~2173 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=230b2b2c3d05b3ee9fe4dd1b6ea60bbb17fc5b87;p=thirdparty%2Fhostap.git Removed redundant NULL check for b in wpabuf_concat() Signed-off-by: Nishant Chaprana --- diff --git a/src/utils/wpabuf.c b/src/utils/wpabuf.c index 96cb25cc1..77ee47288 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);