diff options
author | Greg Kroah-Hartman <gregkh@google.com> | 2016-09-08 17:10:50 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-09-19 17:44:41 +0300 |
commit | 7434564ca130552f3f873d0a7e87286a16890c32 (patch) | |
tree | 7a775988c722b0ca890f366186128849f05d77c8 /drivers | |
parent | 148e0b8f48a83008596876befe1d9aed256c8ea1 (diff) | |
download | linux-7434564ca130552f3f873d0a7e87286a16890c32.tar.xz |
staging: greybus: sdio: fix min() type check
The 0-day bot pointed out a type difference in one min() call, so fix it
up by being explicit about the type being compared.
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/greybus/sdio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/sdio.c b/drivers/staging/greybus/sdio.c index a78d9e4a0321..99b997904edd 100644 --- a/drivers/staging/greybus/sdio.c +++ b/drivers/staging/greybus/sdio.c @@ -136,7 +136,7 @@ static int gb_sdio_get_caps(struct gb_sdio_host *host) data_max = min(data_max - sizeof(struct gb_sdio_transfer_request), data_max - sizeof(struct gb_sdio_transfer_response)); - blksz = min(le16_to_cpu(response.max_blk_size), data_max); + blksz = min_t(u16, le16_to_cpu(response.max_blk_size), data_max); blksz = max_t(u32, 512, blksz); mmc->max_blk_size = rounddown_pow_of_two(blksz); |