Commit 1d3319b2 authored by Michael Straube's avatar Michael Straube Committed by Greg Kroah-Hartman
Browse files

staging: r8188eu: use round_up() instead of _RND128()

parent c63e792b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -287,7 +287,7 @@ static int recvbuf2recvframe(struct adapter *adapt, struct sk_buff *pskb)

		recvframe_put(precvframe, skb_len);

		pkt_offset = (u16)_RND128(pkt_offset);
		pkt_offset = (u16)round_up(pkt_offset, 128);

		if (pattrib->pkt_rpt_type == NORMAL_RX) { /* Normal rx packet */
			if (pattrib->physt)
+0 −8
Original line number Diff line number Diff line
@@ -96,14 +96,6 @@ static inline void flush_signals_thread(void)

#define _RND(sz, r) ((((sz)+((r)-1))/(r))*(r))

static inline u32 _RND128(u32 sz)
{
	u32	val;

	val = ((sz >> 7) + ((sz & 127) ? 1: 0)) << 7;
	return val;
}

static inline u32 _RND256(u32 sz)
{
	u32	val;