libertas: endianness fixes
Recently I found that that sparse by default doesn't endianness checks. So I changed my compilation habit to be make modules C=1 SUBDIRS=drivers/net/wireless/libertas CHECKFLAGS="-D__CHECK_ENDIAN__" so that I get the little-endian checks from sparse as well. That showed up a good bunch of problems. Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de> Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
David S. Miller
parent
1723047d67
commit
c2df2efe96
@@ -454,7 +454,7 @@ static int if_sdio_prog_helper(struct if_sdio_card *card)
|
||||
|
||||
chunk_size = min(size, (size_t)60);
|
||||
|
||||
*((u32*)chunk_buffer) = cpu_to_le32(chunk_size);
|
||||
*((__le32*)chunk_buffer) = cpu_to_le32(chunk_size);
|
||||
memcpy(chunk_buffer + 4, firmware, chunk_size);
|
||||
/*
|
||||
lbs_deb_sdio("sending %d bytes chunk\n", chunk_size);
|
||||
|
Reference in New Issue
Block a user