net: tg3: fix redundant check of true expression
authorJean Sacren <sakiwit@gmail.com>
Fri, 8 Oct 2021 06:31:47 +0000 (00:31 -0600)
committerJakub Kicinski <kuba@kernel.org>
Fri, 8 Oct 2021 23:50:07 +0000 (16:50 -0700)
commit6ed3f61e32007298a0dac406ad6d4e4b30cb3d54
tree16eb443797160f9c997e3a0655dfd39217e7be47
parente761523d0b407518d4812ada39957bd11227e95b
net: tg3: fix redundant check of true expression

Remove the redundant check of (tg3_asic_rev(tp) == ASIC_REV_5705) after
it is checked to be true.

Signed-off-by: Jean Sacren <sakiwit@gmail.com>
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Link: https://lore.kernel.org/r/20211008063147.1421-1-sakiwit@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/tg3.c