Commit 4279e72
ntb_perf: Delete duplicate dmaengine_unmap_put() call in perf_copy_chunk()
The function call “dmaengine_unmap_put(unmap)” was used in an if branch.
The same call was immediately triggered by a subsequent goto statement.
Thus avoid such a call repetition.
This issue was detected by using the Coccinelle software.
Fixes: 5648e56 ("NTB: ntb_perf: Add full multi-port NTB API support")
Cc: [email protected]
Signed-off-by: Markus Elfring <[email protected]>
Signed-off-by: Jon Mason <[email protected]>1 parent 8144e9c commit 4279e72
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
839 | 839 | | |
840 | 840 | | |
841 | 841 | | |
842 | | - | |
843 | | - | |
| 842 | + | |
844 | 843 | | |
845 | | - | |
846 | 844 | | |
847 | 845 | | |
848 | 846 | | |
| |||
0 commit comments