From: Colin Ian King Date: Fri, 10 Apr 2020 19:11:50 +0000 (+0100) Subject: net: neterion: remove redundant assignment to variable tmp64 X-Git-Tag: v5.15~4044^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=465aa30420bc730ad8f0fe235bc80d169e4b5831;p=platform%2Fkernel%2Flinux-starfive.git net: neterion: remove redundant assignment to variable tmp64 The variable tmp64 is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/ethernet/neterion/s2io.c b/drivers/net/ethernet/neterion/s2io.c index 0ec6b8e..67e6260 100644 --- a/drivers/net/ethernet/neterion/s2io.c +++ b/drivers/net/ethernet/neterion/s2io.c @@ -5155,7 +5155,7 @@ static int do_s2io_delete_unicast_mc(struct s2io_nic *sp, u64 addr) /* read mac entries from CAM */ static u64 do_s2io_read_unicast_mc(struct s2io_nic *sp, int offset) { - u64 tmp64 = 0xffffffffffff0000ULL, val64; + u64 tmp64, val64; struct XENA_dev_config __iomem *bar0 = sp->bar0; /* read mac addr */