From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id B7DC5EE2F; Wed, 16 May 2018 10:48:20 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 May 2018 01:48:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,404,1520924400"; d="scan'208";a="42210550" Received: from dpdkx8602.sh.intel.com ([10.67.110.200]) by orsmga006.jf.intel.com with ESMTP; 16 May 2018 01:48:17 -0700 From: "Xu, Rosen" To: dev@dpdk.org, thomas@monjalon.net Cc: rosen.xu@intel.com, roy.fan.zhang@intel.com, declan.doherty@intel.com, bruce.richardson@intel.com, shreyansh.jain@nxp.com, ferruh.yigit@intel.com, konstantin.ananyev@intel.com, tianfei.zhang@intel.com, song.liu@intel.com, hao.wu@intel.com, gaetan.rivet@6wind.com, stable@dpdk.org Date: Wed, 16 May 2018 16:49:04 +0800 Message-Id: <1526460544-148713-1-git-send-email-rosen.xu@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dpdk-dev] [PATCH] raw/ifpga/base: fix a return error value in ifpga_fme_pr X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2018 08:48:21 -0000 From: "Zhang, Tianfei" fix a return error value by DPDK Coverity static code analysis Fixes: 56bb54ea1bdf ("raw/ifpga/base: add Intel FPGA OPAE share code") Coverity issue: 279448 Cc: stable@dpdk.org Signed-off-by: Zhang, Tianfei --- 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 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; } } -- 1.8.3.1