From: Michal Simek Date: Thu, 14 Jun 2018 09:00:13 +0200 Subject: [U-Boot] [UBOOT PATCH] spi: zynq_qspi: Fixed incorrect return value error In-Reply-To: <1528958819-3787-1-git-send-email-vipul.kumar@xilinx.com> References: <1528958819-3787-1-git-send-email-vipul.kumar@xilinx.com> Message-ID: <8afc67f4-a14b-c5fc-b596-0acf365cbfe6@xilinx.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 14.6.2018 08:46, Vipul Kumar wrote: > This patch replaced "return 0" with "return status" to fix the > incorrect return value error reported by the coverity. > > Signed-off-by: Vipul Kumar > --- > drivers/spi/zynq_qspi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/spi/zynq_qspi.c b/drivers/spi/zynq_qspi.c > index ee8796d..9ad1927 100644 > --- a/drivers/spi/zynq_qspi.c > +++ b/drivers/spi/zynq_qspi.c > @@ -486,7 +486,7 @@ static int zynq_qspi_transfer(struct zynq_qspi_priv *priv) > break; > } > > - return 0; > + return status; > } > > static int zynq_qspi_claim_bus(struct udevice *dev) > Reviewed-by: Michal Simek Thanks, Michal