Commit 23827926 authored by Ilpo Järvinen's avatar Ilpo Järvinen Committed by John W. Linville

libertas: use roundup instead of opencoding

Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent ee370ced
......@@ -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>
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment