summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8188eu/include
diff options
context:
space:
mode:
authorIvan Safonov <insafonov@gmail.com>2016-09-19 00:25:40 +0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-20 13:33:49 +0200
commitfb1134087568dad2b974669ebcee09718b7fdc80 (patch)
tree32b574e44dadde9f5f0df0d88abbbff1b4bacde2 /drivers/staging/rtl8188eu/include
parent8fc01db37dfe00f748eb548d304640fc3148b2ab (diff)
downloadlinux-fb1134087568dad2b974669ebcee09718b7fdc80.tar.bz2
staging: r8188eu: replace N_BYTE_ALIGMENT macro with PTR_ALIGN
PTR_ALIGN is a bit shorter than N_BYTE_ALIGMENT. Signed-off-by: Ivan Safonov <insafonov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu/include')
-rw-r--r--drivers/staging/rtl8188eu/include/basic_types.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/rtl8188eu/include/basic_types.h b/drivers/staging/rtl8188eu/include/basic_types.h
index 2c1676d2ac6e..69c4d49f43ab 100644
--- a/drivers/staging/rtl8188eu/include/basic_types.h
+++ b/drivers/staging/rtl8188eu/include/basic_types.h
@@ -137,8 +137,4 @@ value to host byte ordering.*/
((((u8)__val) & BIT_LEN_MASK_8(__bitlen)) << (__bitoffset)) \
)
-/* Get the N-bytes aligment offset from the current length */
-#define N_BYTE_ALIGMENT(__value, __aligment) ((__aligment == 1) ? \
- (__value) : (((__value + __aligment - 1) / __aligment) * __aligment))
-
#endif /* __BASIC_TYPES_H__ */