From e51af848ddd06131001cc41f0228f06bc2a1ca4c Mon Sep 17 00:00:00 2001 From: Vipul Kumar Date: Thu, 14 Jun 2018 12:16:13 +0530 Subject: [PATCH] spi: zynq_qspi: Fixed incorrect return value error This patch replaced "return 0" with "return status" to fix the incorrect return value error reported by the coverity. Signed-off-by: Vipul Kumar Signed-off-by: Michal Simek --- 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 e49f405e417..f73394b3d91 100644 --- a/drivers/spi/zynq_qspi.c +++ b/drivers/spi/zynq_qspi.c @@ -774,7 +774,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) -- 2.47.3