Skip to content

Commit

Permalink
libertas: use roundup instead of opencoding
Browse files Browse the repository at this point in the history
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Ilpo Järvinen authored and John W. Linville committed Dec 19, 2008
1 parent ee370ce commit 2382792
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/wireless/libertas/if_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* if_sdio_card_to_host() to pad the data.
*/

#include <linux/kernel.h>
#include <linux/moduleparam.h>
#include <linux/firmware.h>
#include <linux/netdevice.h>
Expand Down Expand Up @@ -581,7 +582,7 @@ static int if_sdio_prog_real(struct if_sdio_card *card)
chunk_size, (chunk_size + 31) / 32 * 32);
*/
ret = sdio_writesb(card->func, card->ioport,
chunk_buffer, (chunk_size + 31) / 32 * 32);
chunk_buffer, roundup(chunk_size, 32));
if (ret)
goto release;

Expand Down

0 comments on commit 2382792

Please sign in to comment.