linux-brain/drivers/ntb/test
Yang Li 4a6c7c818b NTB: perf: Fix an error code in perf_setup_inbuf()
[ Upstream commit 0097ae5f7af5684f961a5f803ff7ad3e6f933668 ]

When the function IS_ALIGNED() returns false, the value of ret is 0.
So, we set ret to -EINVAL to indicate this error.

Clean up smatch warning:
drivers/ntb/test/ntb_perf.c:602 perf_setup_inbuf() warn: missing error
code 'ret'.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-22 12:26:44 +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-22 12:26:44 +02:00
ntb_perf.c NTB: perf: Fix an error code in perf_setup_inbuf() 2021-09-22 12:26:44 +02:00
ntb_pingpong.c NTB: ntb_pingpong: Choose doorbells based on port number 2020-06-24 17:50:18 +02:00
ntb_tool.c NTB: ntb_tool: reading the link file should not end in a NULL byte 2020-06-24 17:50:40 +02:00