Hi Geert

> If count is even, we never get that far, so the even numbers should not
> be present in your table above?
> 
> If count is odd, "(count - 1) >> 1 == count >> 1".

Ahh, yes, indeed.

About endianness / byte access, it requires byte access
especially "read" case.
Because if count was odd number,
using shift with u16 will might be buffer overflow

I need to check cpu_to_le16() / le16_to_cpu()

Best regards
---
Kuninori Morimoto
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to