]> git.droids-corp.org - dpdk.git/commitdiff
raw/ifpga/base: fix an error return
authorTianfei Zhang <tianfei.zhang@intel.com>
Wed, 16 May 2018 08:49:04 +0000 (16:49 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 21 May 2018 14:13:06 +0000 (16:13 +0200)
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 <tianfei.zhang@intel.com>
drivers/raw/ifpga_rawdev/base/ifpga_fme_pr.c

index 49d8cc56bf2b7601bfb70d65a27014deff766f21..ec0beeb1a14efa591e26d414ac7d2b5b0d6cf587 100644 (file)
@@ -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;
                }
        }