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)
commite146471f588e4b8dcd7994036c1b47cc52325f00
tree234598f895d22c76f3376e4b342c5ba7df40dadf
parentfa145d5dfd612ac318a1eb4b443af55e0f5c8ba7
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: dba1d918da02 ("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