linux/drivers/ntb/test
Markus Elfring 7b02f69bfb ntb_perf: Delete duplicate dmaengine_unmap_put() call in perf_copy_chunk()
commit 4279e72cab upstream.

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: 5648e56d03 ("NTB: ntb_perf: Add full multi-port NTB API support")
Cc: stable@vger.kernel.org
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-04-10 14:32:05 +02:00
..
Kconfig New feature to add support for NTB virtual MSI interrupts, the ability 2019-07-21 09:46:59 -07:00
Makefile New feature to add support for NTB virtual MSI interrupts, the ability 2019-07-21 09:46:59 -07:00
ntb_msi_test.c NTB: Fix an error code in ntb_msit_probe() 2021-09-04 18:36:04 -04:00
ntb_perf.c ntb_perf: Delete duplicate dmaengine_unmap_put() call in perf_copy_chunk() 2025-04-10 14:32:05 +02:00
ntb_pingpong.c ntb: ntb_pingpong: remove redundant initialization of variables msg_data and spad_data 2021-09-05 18:04:46 -04:00
ntb_tool.c NTB: ntb_tool: Add check for devm_kcalloc 2023-07-23 13:47:42 +02:00