spi: Make max_tx and max_rx the same type
authorMark Brown <broonie@linaro.org>
Wed, 12 Feb 2014 20:31:26 +0000 (20:31 +0000)
committerMark Brown <broonie@linaro.org>
Wed, 12 Feb 2014 20:38:20 +0000 (20:38 +0000)
Prevents spurious compiler warnings.

Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi.c

index 49313dd0a1443f24fcc0f1b1041b83bc02ea905a..f3fb1acf9ac17f66dbc8d117cba7abc112f53e25 100644 (file)
@@ -644,7 +644,7 @@ static int spi_map_msg(struct spi_master *master, struct spi_message *msg)
        struct device *tx_dev, *rx_dev;
        struct spi_transfer *xfer;
        void *tmp;
-       size_t max_tx, max_rx;
+       unsigned int max_tx, max_rx;
        int ret;
 
        if (master->flags & (SPI_MASTER_MUST_RX | SPI_MASTER_MUST_TX)) {