aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/sja1105
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-05-05 22:38:14 +0100
committerDavid S. Miller <davem@davemloft.net>2019-05-07 12:14:29 -0700
commitd4ee7f195e2de2f881a0d0d9412394a14a02c4c8 (patch)
tree1ed2b70af929791a4cb720300a82879cc3365f77 /drivers/net/dsa/sja1105
parentMerge branch 'fc-quic-pacing' (diff)
downloadlinux-dev-d4ee7f195e2de2f881a0d0d9412394a14a02c4c8.tar.xz
linux-dev-d4ee7f195e2de2f881a0d0d9412394a14a02c4c8.zip
net: mvpp2: cls: fix less than zero check on a u32 variable
The signed return from the call to mvpp2_cls_c2_port_flow_index is being assigned to the u32 variable c2.index and then checked for a negative error condition which is always going to be false. Fix this by assigning the return to the int variable index and checking this instead. Addresses-Coverity: ("Unsigned compared against 0") Fixes: 90b509b39ac9 ("net: mvpp2: cls: Add Classification offload support") Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/sja1105')
0 files changed, 0 insertions, 0 deletions