Commit cd4f186
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: 7db9839 ("net/mlx5: E-Switch, Implement devlink port function cmds to control RoCE")
Fixes: e5b9642 ("net/mlx5: E-Switch, Implement devlink port function cmds to control migratable")
Signed-off-by: Shay Drory <[email protected]>
Reviewed-by: Mark Bloch <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>1 parent d515d63 commit cd4f186
1 file changed
+0
-4
lines changedLines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4143 | 4143 | | |
4144 | 4144 | | |
4145 | 4145 | | |
4146 | | - | |
4147 | | - | |
4148 | 4146 | | |
4149 | 4147 | | |
4150 | 4148 | | |
| |||
4236 | 4234 | | |
4237 | 4235 | | |
4238 | 4236 | | |
4239 | | - | |
4240 | | - | |
4241 | 4237 | | |
4242 | 4238 | | |
4243 | 4239 | | |
| |||
0 commit comments