mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 19:49:33 -04:00
staging: wilc1000: remove redundant masking of pkt_offset
The masking update of pkg_offset is redundant as the updated
value is never read and pkg_offset is re-assigned on the next
iteration of the loop. Clean this up by removing the redundant
assignment.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Adham Abozaeid <adham.abozaeid@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
2411a336c8
commit
b5a0c29f4b
@@ -709,9 +709,6 @@ static void wilc_wlan_handle_rx_buff(struct wilc *wilc, u8 *buffer, int size)
|
||||
break;
|
||||
|
||||
if (pkt_offset & IS_MANAGMEMENT) {
|
||||
pkt_offset &= ~(IS_MANAGMEMENT |
|
||||
IS_MANAGMEMENT_CALLBACK |
|
||||
IS_MGMT_STATUS_SUCCES);
|
||||
buff_ptr += HOST_HDR_OFFSET;
|
||||
wilc_wfi_mgmt_rx(wilc, buff_ptr, pkt_len);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user