From 240cd7566e7b98ef5f88b8d2f36c54e8d83f576e Mon Sep 17 00:00:00 2001 From: Vipul Kumar Date: Mon, 25 Jun 2018 14:13:57 +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. Reviewed-by: Michal Simek Signed-off-by: Vipul Kumar [jagan: rebased on master] Signed-off-by: Jagan Teki --- 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 ee8796d470..9ad1927a5d 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) -- 2.39.5