Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

libertas: use roundup instead of opencoding

parent ee370ced
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -26,6 +26,7 @@
 * if_sdio_card_to_host() to pad the data.
 * if_sdio_card_to_host() to pad the data.
 */
 */


#include <linux/kernel.h>
#include <linux/moduleparam.h>
#include <linux/moduleparam.h>
#include <linux/firmware.h>
#include <linux/firmware.h>
#include <linux/netdevice.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);
				chunk_size, (chunk_size + 31) / 32 * 32);
*/
*/
			ret = sdio_writesb(card->func, card->ioport,
			ret = sdio_writesb(card->func, card->ioport,
				chunk_buffer, (chunk_size + 31) / 32 * 32);
				chunk_buffer, roundup(chunk_size, 32));
			if (ret)
			if (ret)
				goto release;
				goto release;