cosmetic nit in mmc.c
Alexander Motin
mav at FreeBSD.org
Mon Jan 17 19:33:44 UTC 2011
Michael Butler wrote:
> In the process of making the sdhci driver work with my laptop, I noted a
> cosmetic issue where the SD card's serial number is not correctly
> reported (it's always zero). Possible patch attached,
Thank you. I've committed such patch to the HEAD at r217509:
--- mmc.c Mon Jan 17 19:17:26 2011 (r217508)
+++ mmc.c Mon Jan 17 19:31:34 2011 (r217509)
@@ -749,7 +749,7 @@ mmc_get_bits(uint32_t *bits, int bit_len
uint32_t retval = bits[i] >> shift;
if (size + shift > 32)
retval |= bits[i - 1] << (32 - shift);
- return (retval & ((1 << size) - 1));
+ return (retval & ((1llu << size) - 1));
}
static void
--
Alexander Motin
More information about the freebsd-current
mailing list