From 4022248efe7060e5a358696953a4236e417ad58b Mon Sep 17 00:00:00 2001 From: Tianfei Zhang Date: Wed, 16 May 2018 16:49:04 +0800 Subject: [PATCH] raw/ifpga/base: fix an error return fix a return error value by DPDK Coverity static code analysis Coverity issue: 279448 Fixes: 56bb54ea1bdf ("raw/ifpga/base: add Intel FPGA OPAE share code") Signed-off-by: Tianfei Zhang --- drivers/raw/ifpga_rawdev/base/ifpga_fme_pr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/raw/ifpga_rawdev/base/ifpga_fme_pr.c b/drivers/raw/ifpga_rawdev/base/ifpga_fme_pr.c index 49d8cc56bf..ec0beeb1a1 100644 --- a/drivers/raw/ifpga_rawdev/base/ifpga_fme_pr.c +++ b/drivers/raw/ifpga_rawdev/base/ifpga_fme_pr.c @@ -139,7 +139,7 @@ static int fme_pr_write(struct ifpga_fme_hw *fme_dev, pr_credit--; } else { WARN_ON(1); - return -EINVAL; + ret = -EINVAL; goto done; } } -- 2.20.1