]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NTB: Fix an error code in ntb_msit_probe()
authorYang Li <yang.lee@linux.alibaba.com>
Mon, 7 Jun 2021 05:56:20 +0000 (13:56 +0800)
committerJon Mason <jdmason@kudzu.us>
Thu, 10 Jun 2021 15:27:17 +0000 (11:27 -0400)
commit6928e7277734412dee205bbe83d27a7ab047e044
tree64cee57db7217824281e0d6a8c4cec38821d2f2d
parent6efb943b8616ec53a5e444193dccf1af9ad627b5
NTB: Fix an error code in ntb_msit_probe()

When the value of nm->isr_ctx is false, the value of ret is 0.
So, we set ret to -ENOMEM to indicate this error.

Clean up smatch warning:
drivers/ntb/test/ntb_msi_test.c:373 ntb_msit_probe() 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: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/test/ntb_msi_test.c