summaryrefslogtreecommitdiff
path: root/drivers/raw
diff options
context:
space:
mode:
authorTianfei Zhang <tianfei.zhang@intel.com>2018-05-16 16:49:04 +0800
committerThomas Monjalon <thomas@monjalon.net>2018-05-21 16:13:06 +0200
commit4022248efe7060e5a358696953a4236e417ad58b (patch)
tree5b7d42ab5bbe0647a20beb9df73c64441926d287 /drivers/raw
parent6ff0f81d0ef79acc2544de6a1b52037cd9864395 (diff)
downloaddpdk-next-eventdev-4022248efe7060e5a358696953a4236e417ad58b.zip
dpdk-next-eventdev-4022248efe7060e5a358696953a4236e417ad58b.tar.gz
dpdk-next-eventdev-4022248efe7060e5a358696953a4236e417ad58b.tar.xz
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 <tianfei.zhang@intel.com>
Diffstat (limited to 'drivers/raw')
-rw-r--r--drivers/raw/ifpga_rawdev/base/ifpga_fme_pr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/raw/ifpga_rawdev/base/ifpga_fme_pr.c b/drivers/raw/ifpga_rawdev/base/ifpga_fme_pr.c
index 49d8cc5..ec0beeb 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;
}
}