summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
diff options
context:
space:
mode:
authorShay Drory <shayd@nvidia.com>2022-12-15 15:33:38 +0200
committerSaeed Mahameed <saeedm@nvidia.com>2023-01-09 22:08:36 -0800
commitcd4f186dc110a0f0b3484048b8ecd42ee006ca6d (patch)
treedaaebfc5f424f3ed1c98169bdc4cf924faf916d4 /drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
parentd515d63cae2cd186acf40deaa8ef33067bb7f637 (diff)
downloadlinux-cd4f186dc110a0f0b3484048b8ecd42ee006ca6d.tar.bz2
net/mlx5: E-switch, Coverity: overlapping copy
When a capability is set via port function caps callbacks, a memcpy() is performed in which the source and the target are the same address, e.g.: the copy is redundant. Hence, Remove it. Discovered by Coverity. Fixes: 7db98396ef45 ("net/mlx5: E-Switch, Implement devlink port function cmds to control RoCE") Fixes: e5b9642a33be ("net/mlx5: E-Switch, Implement devlink port function cmds to control migratable") Signed-off-by: Shay Drory <shayd@nvidia.com> Reviewed-by: Mark Bloch <mbloch@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c')
0 files changed, 0 insertions, 0 deletions