Message ID | 20211008063147.1421-1-sakiwit@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 6ed3f61e32007298a0dac406ad6d4e4b30cb3d54 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next] net: tg3: fix redundant check of true expression | expand |
Context | Check | Description |
---|---|---|
netdev/cover_letter | success | Single patches do not need cover letters |
netdev/fixes_present | success | Fixes tag not required for -next series |
netdev/patch_count | success | Link |
netdev/tree_selection | success | Clearly marked for net-next |
netdev/subject_prefix | success | Link |
netdev/cc_maintainers | success | CCed 6 of 6 maintainers |
netdev/source_inline | success | Was 0 now: 0 |
netdev/verify_signedoff | success | Signed-off-by tag matches author and committer |
netdev/module_param | success | Was 0 now: 0 |
netdev/build_32bit | success | Errors and warnings before: 7 this patch: 7 |
netdev/kdoc | success | Errors and warnings before: 0 this patch: 0 |
netdev/verify_fixes | success | No Fixes tag |
netdev/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 9 lines checked |
netdev/build_allmodconfig_warn | success | Errors and warnings before: 7 this patch: 7 |
netdev/header_inline | success | No static functions without inline keyword in header files |
On Thu, Oct 7, 2021 at 11:32 PM Jεan Sacren <sakiwit@gmail.com> wrote: > > From: Jean Sacren <sakiwit@gmail.com> > > 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> Thanks. Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Hello: This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <kuba@kernel.org>: On Fri, 8 Oct 2021 00:31:47 -0600 you wrote: > From: Jean Sacren <sakiwit@gmail.com> > > 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> > > [...] Here is the summary with links: - [net-next] net: tg3: fix redundant check of true expression https://git.kernel.org/netdev/net-next/c/6ed3f61e3200 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c index 5a50ea75094f..32d486114a6d 100644 --- a/drivers/net/ethernet/broadcom/tg3.c +++ b/drivers/net/ethernet/broadcom/tg3.c @@ -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)) {