From: Vipul Kumar Date: Mon, 25 Jun 2018 08:43:57 +0000 (+0530) Subject: spi: zynq_qspi: Fixed incorrect return value error X-Git-Tag: v2018.07-rc3~13^2~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=240cd7566e7b98ef5f88b8d2f36c54e8d83f576e;p=u-boot 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 --- 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)