Skip to content

Commit

Permalink
spi: Make max_tx and max_rx the same type
Browse files Browse the repository at this point in the history
Prevents spurious compiler warnings.

Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Mark Brown committed Feb 12, 2014
1 parent 6ad45a2 commit 5132735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 5132735

Please sign in to comment.