]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_ptp: fix duplicated check on orig_egr_types
authorColin Ian King <colin.king@canonical.com>
Tue, 30 Jul 2019 11:47:52 +0000 (12:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jul 2019 17:19:47 +0000 (10:19 -0700)
commit1420f9a5e822cda42ced8a2283ad71804f9444f4
tree0c88db77942707a4de2158fed27b674c56bbad29
parent073119f233b310b11a3aad76fb7a136d562167ce
mlxsw: spectrum_ptp: fix duplicated check on orig_egr_types

Currently are duplicated checks on orig_egr_types which are
redundant, I believe this is a typo and should actually be
orig_ing_types || orig_egr_types instead of the expression
orig_egr_types || orig_egr_types.  Fix these.

Addresses-Coverity: ("Same on both sides")
Fixes: 42d7b34132fc ("mlxsw: spectrum_ptp: Increase parsing depth when PTP is enabled")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c