spi: Fix regression to return zero on success instead of positive value
[linux-2.6-microblaze.git] / drivers / spi / spi-npcm-pspi.c
index b191d57..fe62473 100644 (file)
@@ -293,7 +293,6 @@ static void npcm_pspi_reset_hw(struct npcm_pspi *priv)
 static irqreturn_t npcm_pspi_handler(int irq, void *dev_id)
 {
        struct npcm_pspi *priv = dev_id;
-       u16 val;
        u8 stat;
 
        stat = ioread8(priv->base + NPCM_PSPI_STAT);
@@ -303,7 +302,7 @@ static irqreturn_t npcm_pspi_handler(int irq, void *dev_id)
 
        if (priv->tx_buf) {
                if (stat & NPCM_PSPI_STAT_RBF) {
-                       val = ioread8(NPCM_PSPI_DATA + priv->base);
+                       ioread8(NPCM_PSPI_DATA + priv->base);
                        if (priv->tx_bytes == 0) {
                                npcm_pspi_disable(priv);
                                complete(&priv->xfer_done);