]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvpp2: debugfs: fix incorrect bitwise operator
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 18 Jul 2018 13:08:46 +0000 (08:08 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jul 2018 17:55:42 +0000 (10:55 -0700)
commit8e11f788c98f8255f9e9f3623c21f3d7e5eeccf6
tree234598f895d22c76f3376e4b342c5ba7df40dadf
parent094cfcee00bb3e654d3cce8aca9ce0fe5793da99
net: mvpp2: debugfs: fix incorrect bitwise operator

The use of the | operator always leads to true, which looks rather
suspect in this case.

Fix this by using & instead.

Addresses-Coverity-ID: 1471903 ("Wrong operator used")
Fixes: 9a61b2751aa2 ("net: mvpp2: debugfs: add entries for classifier flows")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c