Fix Dead Store (Dead Assignment) found by Clang Analyzer

---
 src/common/capwap_protocol.c | 2 --
 1 file changed, 2 deletions(-)
This commit is contained in:
Alexis La Goutte 2015-01-22 10:19:38 +01:00
parent 1ba7fc2355
commit 3a51803eba
1 changed files with 0 additions and 2 deletions

View File

@ -800,8 +800,6 @@ int capwap_packet_rxmng_add_recv_packet(struct capwap_packet_rxmng* rxmngpacket,
/* Check complete only if receive last packet */
ASSERT(rxmngpacket->fragmentlist->last != NULL);
packetsearch = (struct capwap_fragment_packet_item*)rxmngpacket->fragmentlist->last->item;
headersearch = (struct capwap_header*)packetsearch->buffer;
if (IS_FLAG_L_HEADER(header)) {
unsigned short sanityfragoffset = 0;