staging: rtl8188eu: Use round_up() instead of _RND8()
authornavin patidar <navin.patidar@gmail.com>
Sun, 22 Jun 2014 08:51:40 +0000 (14:21 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2014 00:27:15 +0000 (20:27 -0400)
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c
drivers/staging/rtl8188eu/include/osdep_service.h

index ba8beb88d53c407a70d6122f0ada2bff2e5dcce9..85438478a345afdd7823bddf92f7d7e659e60f5f 100644 (file)
@@ -493,7 +493,7 @@ s32 rtl8188eu_xmitframe_complete(struct adapter *adapt, struct xmit_priv *pxmitp
        pfirstframe = pxmitframe;
        len = xmitframe_need_length(pfirstframe) + TXDESC_SIZE + (pfirstframe->pkt_offset*PACKET_OFFSET_SZ);
        pbuf_tail = len;
-       pbuf = _RND8(pbuf_tail);
+       pbuf = round_up(pbuf_tail, 8);
 
        /*  check pkt amount in one bulk */
        desc_cnt = 0;
index 22025704d1fc0ce3b88f385dec55a1b2fb258f5a..927b30bdb848bc8c6bd8c53f751a47a7614f6612 100644 (file)
@@ -189,14 +189,6 @@ static inline u32 _RND4(u32 sz)
        return val;
 }
 
-static inline u32 _RND8(u32 sz)
-{
-       u32     val;
-
-       val = ((sz >> 3) + ((sz & 7) ? 1 : 0)) << 3;
-       return val;
-}
-
 struct rtw_netdev_priv_indicator {
        void *priv;
        u32 sizeof_priv;
This page took 0.025751 seconds and 5 git commands to generate.