]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spi: xilinx_spi: remove unused local variable
authorT Karthik Reddy <t.karthik.reddy@xilinx.com>
Thu, 24 Sep 2020 10:32:15 +0000 (04:32 -0600)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 27 Oct 2020 07:13:32 +0000 (08:13 +0100)
Remove unused variable 'count' which is causing warning while
compilation.

Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/spi/xilinx_spi.c

index c0cfe94d4439621faec83ca6a9dc4f0c396fa194..47a5571aecd7483ebaebc21a944ffa885fd99247 100644 (file)
@@ -214,7 +214,7 @@ static void xilinx_spi_startup_block(struct udevice *dev, unsigned int bytes,
        struct dm_spi_slave_platdata *slave_plat = dev_get_parent_platdata(dev);
        const unsigned char *txp = dout;
        unsigned char *rxp = din;
-       u32 reg, count;
+       u32 reg;
        u32 txbytes = bytes;
        u32 rxbytes = bytes;
 
@@ -224,10 +224,10 @@ static void xilinx_spi_startup_block(struct udevice *dev, unsigned int bytes,
         * it sets txp to the initial value for the normal operation.
         */
        for ( ; priv->startup < 2; priv->startup++) {
-               count = xilinx_spi_fill_txfifo(bus, txp, txbytes);
+               xilinx_spi_fill_txfifo(bus, txp, txbytes);
                reg = readl(&regs->spicr) & ~SPICR_MASTER_INHIBIT;
                writel(reg, &regs->spicr);
-               count = xilinx_spi_read_rxfifo(bus, rxp, rxbytes);
+               xilinx_spi_read_rxfifo(bus, rxp, rxbytes);
                txp = din;
 
                if (priv->startup) {