diff options
author | Michael Straube <straube.linux@gmail.com> | 2022-04-07 14:57:38 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-07 19:45:27 +0200 |
commit | 727841e02b65b36505fde45ec4983ed1291e1729 (patch) | |
tree | 1684e37a376c5de474cdf84b6edcf6c61c4d61c8 /drivers/staging/r8188eu/include/osdep_service.h | |
parent | f8525b9763c61f54d1abdcce2821468dc416cda1 (diff) | |
download | linux-727841e02b65b36505fde45ec4983ed1291e1729.tar.bz2 |
staging: r8188eu: use PTR_ALIGN() instead of RND4()
Use in-kernel PTR_ALIGN() instead of custom RND4().
Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220407125742.7814-2-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/r8188eu/include/osdep_service.h')
-rw-r--r-- | drivers/staging/r8188eu/include/osdep_service.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/r8188eu/include/osdep_service.h b/drivers/staging/r8188eu/include/osdep_service.h index fca8f3d116c2..56e5cbfec1f1 100644 --- a/drivers/staging/r8188eu/include/osdep_service.h +++ b/drivers/staging/r8188eu/include/osdep_service.h @@ -95,7 +95,6 @@ static inline void flush_signals_thread(void) } #define _RND(sz, r) ((((sz)+((r)-1))/(r))*(r)) -#define RND4(x) (((x >> 2) + (((x & 3) == 0) ? 0: 1)) << 2) static inline u32 _RND4(u32 sz) { |