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 49d8cc5..ec0beeb 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;
                }
        }