diff options
author | Ivan Safonov <insafonov@gmail.com> | 2016-09-19 00:25:40 +0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-20 13:33:49 +0200 |
commit | fb1134087568dad2b974669ebcee09718b7fdc80 (patch) | |
tree | 32b574e44dadde9f5f0df0d88abbbff1b4bacde2 /drivers/staging/rtl8188eu/include | |
parent | 8fc01db37dfe00f748eb548d304640fc3148b2ab (diff) | |
download | linux-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.h | 4 |
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__ */ |