Commit 9a74f8d5 authored by Ross Schmidt's avatar Ross Schmidt Committed by Greg Kroah-Hartman

staging: rtl8723bs: replace _RND8 with round_up()

Use round_up instead of inline _RND8.
Signed-off-by: default avatarRoss Schmidt <ross.schm.dev@gmail.com>
Link: https://lore.kernel.org/r/20201004011743.10750-3-ross.schm.dev@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 046bd5c9
...@@ -369,7 +369,7 @@ static void rtl8723bs_recv_tasklet(struct tasklet_struct *t) ...@@ -369,7 +369,7 @@ static void rtl8723bs_recv_tasklet(struct tasklet_struct *t)
} }
} }
pkt_offset = _RND8(pkt_offset); pkt_offset = round_up(pkt_offset, 8);
precvbuf->pdata += pkt_offset; precvbuf->pdata += pkt_offset;
ptr = precvbuf->pdata; ptr = precvbuf->pdata;
precvframe = NULL; precvframe = NULL;
......
...@@ -132,17 +132,6 @@ static inline int rtw_bug_check(void *parg1, void *parg2, void *parg3, void *par ...@@ -132,17 +132,6 @@ static inline int rtw_bug_check(void *parg1, void *parg2, void *parg3, void *par
#define _RND(sz, r) ((((sz)+((r)-1))/(r))*(r)) #define _RND(sz, r) ((((sz)+((r)-1))/(r))*(r))
static inline u32 _RND8(u32 sz)
{
u32 val;
val = ((sz >> 3) + ((sz & 7) ? 1 : 0)) << 3;
return val;
}
#ifndef MAC_FMT #ifndef MAC_FMT
#define MAC_FMT "%pM" #define MAC_FMT "%pM"
#endif #endif
......
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