[lvc-project] [PATCH] ethernet: tg3: remove unreachable code

Michael Chan michael.chan at broadcom.com
Sun Aug 27 20:29:37 MSK 2023


On Sun, Aug 27, 2023 at 9:51 AM Simon Horman <horms at kernel.org> wrote:
>
> On Fri, Aug 25, 2023 at 10:04:41PM +0300, Mikhail Kobuk wrote:
>
> + Matt Carlson <mcarlson at broadcom.com>

Matt Carlson is no longer working for Broadcom.

>
> > 'tp->irq_max' value is either 1 [L16336] or 5 [L16354], as indicated in
> > tg3_get_invariants(). Therefore, 'i' can't exceed 4 in tg3_init_one()
> > that makes (i <= 4) always true. Moreover, 'intmbx' value set at the
> > last iteration is not used later in it's scope.
> >
> > Found by Linux Verification Center (linuxtesting.org) with SVACE.
> >
> > Fixes: 78f90dcf184b ("tg3: Move napi_add calls below tg3_get_invariants")
> > Signed-off-by: Mikhail Kobuk <m.kobuk at ispras.ru>
> > Reviewed-by: Alexey Khoroshilov <khoroshilov at ispras.ru>

Reviewed-by: Michael Chan <michael.chan at broadcom.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4209 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://linuxtesting.org/pipermail/lvc-project/attachments/20230827/1ea246e8/attachment.bin>


More information about the lvc-project mailing list