Skip to contentSkip to conversation

spi: zynq_qspi: Fixed incorrect return value error

PATCH New Vipul Kumar 3 participants 3 messages Jun 14, 2018 – Jun 25, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/spi/zynq_qspi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/zynq_qspi.c +1 -1
index ee8796d..9ad1927 100644
@@ -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.7.4

This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.

#1 lore raw

PATCH 1/1 spi: zynq_qspi: Fixed incorrect return value error

Quoted 14 lines · Vipul Kumar

This patch replaced "return 0" with "return status" to fix the incorrect return value error reported by the coverity.

---
 drivers/spi/zynq_qspi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/zynq_qspi.c +0 -0
index ee8796d..9ad1927 100644

drivers/spi/zynq_qspi.c static int zynq_qspi_transfer(struct zynq_qspi_priv *priv) · line 492

Quoted 8 lines
drivers/spi/zynq_qspi.c +1 -1
@@ -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)

Thanks,
Michal

#2 lore raw

PATCH 1/1 spi: zynq_qspi: Fixed incorrect return value error

Quoted 17 lines · Michal Simek
Quoted 16 lines · Vipul Kumar

This patch replaced "return 0" with "return status" to fix the incorrect return value error reported by the coverity.

---
 drivers/spi/zynq_qspi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/zynq_qspi.c +0 -0
index ee8796d..9ad1927 100644
@@ -486,7 +486,7 @@ static int zynq_qspi_transfer(struct zynq_qspi_priv *priv)
              break;
      }
 
Quoted 8 lines

drivers/spi/zynq_qspi.c static int zynq_qspi_transfer(struct zynq_qspi_priv *priv) · line 492

Quoted 6 lines
drivers/spi/zynq_qspi.c +1 -1
-     return 0;
+     return status;
 }
 
 static int zynq_qspi_claim_bus(struct udevice *dev)

Applied to u-boot-spi/master