From: Jouni Malinen Date: Sat, 11 Oct 2014 15:03:38 +0000 (+0300) Subject: IAPP: Avoid warnings on unused write X-Git-Tag: hostap_2_4~1356 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4aa01d38f53e3403ee8c8fe4a8d3f6e28bebf903;p=thirdparty%2Fhostap.git IAPP: Avoid warnings on unused write The hlen and len variables are identical here, but only the hlen was used in the end. Change this to use the len variable to avoid unnecessary static analyzer warnings about unused writes. Signed-off-by: Jouni Malinen --- diff --git a/src/ap/iapp.c b/src/ap/iapp.c index 9b2900f23..99aa04dc3 100644 --- a/src/ap/iapp.c +++ b/src/ap/iapp.c @@ -361,7 +361,7 @@ static void iapp_receive_udp(int sock, void *eloop_ctx, void *sock_ctx) switch (hdr->command) { case IAPP_CMD_ADD_notify: - iapp_process_add_notify(iapp, &from, hdr, hlen - sizeof(*hdr)); + iapp_process_add_notify(iapp, &from, hdr, len - sizeof(*hdr)); break; case IAPP_CMD_MOVE_notify: /* TODO: MOVE is using TCP; so move this to TCP handler once it