summaryrefslogtreecommitdiffstats
path: root/drivers/net/netdevsim
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2018-06-06 15:03:22 +0200
committerDavid S. Miller <davem@davemloft.net>2018-06-06 14:01:03 -0400
commitdd612f18a49b63af8b3a5f572d999bdb197385bc (patch)
tree8799318430a7301b07a2422452ec03074a91b18c /drivers/net/netdevsim
parent9a99dc1c41772e0b24348f089a7a7edb91fc7723 (diff)
downloadblackbird-op-linux-dd612f18a49b63af8b3a5f572d999bdb197385bc.tar.gz
blackbird-op-linux-dd612f18a49b63af8b3a5f572d999bdb197385bc.zip
bnx2x: use the right constant
Nearby code that also tests port suggests that the P0 constant should be used when port is zero. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression e,e1; @@ * e ? e1 : e1 // </smpl> Fixes: 6c3218c6f7e5 ("bnx2x: Adjust ETS to 578xx") Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netdevsim')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud