aboutsummaryrefslogtreecommitdiff
path: root/drivers/spi
diff options
context:
space:
mode:
authorVipul Kumar2018-06-25 14:13:57 +0530
committerJagan Teki2018-06-25 14:13:57 +0530
commit240cd7566e7b98ef5f88b8d2f36c54e8d83f576e (patch)
tree53a4d55456fbcb42a55f3a53c5930f1b18b2fad1 /drivers/spi
parent77b5ba5d2b94c5b028991c82782493f64bd4f392 (diff)
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 <michal.simek@xilinx.com> Signed-off-by: Vipul Kumar <vipul.kumar@xilinx.com> [jagan: rebased on master] Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/zynq_qspi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/zynq_qspi.c b/drivers/spi/zynq_qspi.c
index ee8796d470b..9ad1927a5d5 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)