]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wilc1000: remove redundant masking of pkt_offset
authorColin Ian King <colin.king@canonical.com>
Tue, 21 May 2019 13:17:06 +0000 (14:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 May 2019 12:32:41 +0000 (14:32 +0200)
commit6f260d7e7f8e40c618caf62ad3eb72762ed2acdb
tree87b46cb486de3ca2b40fa6209dc5d2fbd424baec
parent246bfc04c72024865f43e9448584c6d540d7f257
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>
drivers/staging/wilc1000/wilc_wlan.c