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:
		@ -800,8 +800,6 @@ int capwap_packet_rxmng_add_recv_packet(struct capwap_packet_rxmng* rxmngpacket,
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		/* Check complete only if receive last packet */
 | 
							/* Check complete only if receive last packet */
 | 
				
			||||||
		ASSERT(rxmngpacket->fragmentlist->last != NULL);
 | 
							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)) {
 | 
							if (IS_FLAG_L_HEADER(header)) {
 | 
				
			||||||
			unsigned short sanityfragoffset = 0;
 | 
								unsigned short sanityfragoffset = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user