projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77b5ba5
)
spi: zynq_qspi: Fixed incorrect return value error
author
Vipul Kumar
<vipul.kumar@xilinx.com>
Mon, 25 Jun 2018 08:43:57 +0000
(14:13 +0530)
committer
Jagan Teki
<jagan@amarulasolutions.com>
Mon, 25 Jun 2018 08:43:57 +0000
(14:13 +0530)
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>
drivers/spi/zynq_qspi.c
patch
|
blob
|
history
diff --git
a/drivers/spi/zynq_qspi.c
b/drivers/spi/zynq_qspi.c
index ee8796d470b849306eb722fa423341c6e307275c..9ad1927a5d51f0bcdf783096fe73086c2de8e0f1 100644
(file)
--- 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)