net/atheros: remove redundant assignment to variable size
authorColin Ian King <colin.king@canonical.com>
Fri, 8 May 2020 22:33:21 +0000 (23:33 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 9 May 2020 05:46:36 +0000 (22:46 -0700)
The variable size is being assigned with a value that is never read,
the assignment is redundant and cab be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/atheros/atlx/atl1.c

index 271e7034fa70d2d1d681e4c4072f2f6e811a7698..b35fcfcd692d9e13afe1732ce882d2aefdf06d40 100644 (file)
@@ -1042,7 +1042,7 @@ static s32 atl1_setup_ring_resources(struct atl1_adapter *adapter)
         * each ring/block may need up to 8 bytes for alignment, hence the
         * additional 40 bytes tacked onto the end.
         */
-       ring_header->size = size =
+       ring_header->size =
                sizeof(struct tx_packet_desc) * tpd_ring->count
                + sizeof(struct rx_free_desc) * rfd_ring->count
                + sizeof(struct rx_return_desc) * rrd_ring->count