Re: [PATCH net] et131x: Fix logical vs bitwise check in et131x_tx_timeout()

From: David Miller
Date: Sun Jul 17 2016 - 01:04:52 EST


From: Florian Fainelli <f.fainelli@xxxxxxxxx>
Date: Fri, 15 Jul 2016 16:40:22 -0700

> We should be using a logical check here instead of a bitwise operation
> to check if the device is closed already in et131x_tx_timeout().
>
> Reported-by: coverity (CID 146498)
> Fixes: 38df6492eb511 ("et131x: Add PCIe gigabit ethernet driver et131x to drivers/net")
> Signed-off-by: Florian Fainelli <f.fainelli@xxxxxxxxx>

Applied.