]> git.droids-corp.org - dpdk.git/commit
net/qede: fix redundant condition in debug code
authorAnatoly Burakov <anatoly.burakov@intel.com>
Tue, 30 Nov 2021 16:59:13 +0000 (16:59 +0000)
committerJerin Jacob <jerinj@marvell.com>
Tue, 11 Jan 2022 12:02:14 +0000 (13:02 +0100)
commit6caee3fb5f7b45ca7a676d77f678cafc4984defa
tree3968c553bf487d4d139a376df3310622ad7ed484
parent92734378be161fd384d0f5f01cbd1ff8ff34fe7b
net/qede: fix redundant condition in debug code

Expression "a && 1" is equivalent to just "a", so fix the accidental
inclusion of a literal in code.

Fixes: ec55c118792b ("net/qede: add infrastructure for debug data collection")
Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Devendra Singh Rawat <dsinghrawat@marvell.com>
Reviewed-by: Igor Russkikh <irusskikh@marvell.com>
Acked-by: Rasesh Mody <rmody@marvell.com>
drivers/net/qede/qede_debug.c