diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2018-06-06 16:03:22 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-06-13 17:15:28 +0300 |
commit | d6494acbe6a1c2b507b108c77a7cf609e6a9a359 (patch) | |
tree | 70fa4a7f7fd94ead39902f093a03db5e1f1ca25b /net/dccp | |
parent | a1b993e1cf9f61b6493fee3f06598b90f9545501 (diff) | |
download | linux-d6494acbe6a1c2b507b108c77a7cf609e6a9a359.tar.xz |
bnx2x: use the right constant
[ Upstream commit dd612f18a49b63af8b3a5f572d999bdb197385bc ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/dccp')
0 files changed, 0 insertions, 0 deletions