mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 14:14:37 +00:00
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>
This commit is contained in:
parent
e761523d0b
commit
6ed3f61e32
1 changed files with 1 additions and 2 deletions
|
@ -10273,8 +10273,7 @@ static int tg3_reset_hw(struct tg3 *tp, bool reset_phy)
|
|||
|
||||
if (tg3_asic_rev(tp) == ASIC_REV_5705 &&
|
||||
tg3_chip_rev_id(tp) != CHIPREV_ID_5705_A0) {
|
||||
if (tg3_flag(tp, TSO_CAPABLE) &&
|
||||
tg3_asic_rev(tp) == ASIC_REV_5705) {
|
||||
if (tg3_flag(tp, TSO_CAPABLE)) {
|
||||
rdmac_mode |= RDMAC_MODE_FIFO_SIZE_128;
|
||||
} else if (!(tr32(TG3PCI_PCISTATE) & PCISTATE_BUS_SPEED_HIGH) &&
|
||||
!tg3_flag(tp, IS_5788)) {
|
||||
|
|
Loading…
Reference in a new issue