From: Tianfei Zhang Date: Wed, 16 May 2018 08:49:04 +0000 (+0800) Subject: raw/ifpga/base: fix an error return X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4022248efe7060e5a358696953a4236e417ad58b;p=dpdk.git 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 --- 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; } }