Commit 4c510e95 authored by Larry Finger's avatar Larry Finger Committed by Greg Kroah-Hartman

staging: r8712u: Remove extraneous variables from osdep_service.h

Jesper Juhl submitted a patch to remove one extraneous variable in
this file; however, there are several others.
Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Reviewed-by: default avatarJesper Juhl <jj@chaosbits.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent a2ac9d69
...@@ -218,34 +218,22 @@ static inline void flush_signals_thread(void) ...@@ -218,34 +218,22 @@ static inline void flush_signals_thread(void)
static inline u32 _RND8(u32 sz) static inline u32 _RND8(u32 sz)
{ {
u32 val; return ((sz >> 3) + ((sz & 7) ? 1 : 0)) << 3;
val = ((sz >> 3) + ((sz & 7) ? 1 : 0)) << 3;
return val;
} }
static inline u32 _RND128(u32 sz) static inline u32 _RND128(u32 sz)
{ {
u32 val; return ((sz >> 7) + ((sz & 127) ? 1 : 0)) << 7;
val = ((sz >> 7) + ((sz & 127) ? 1 : 0)) << 7;
return val;
} }
static inline u32 _RND256(u32 sz) static inline u32 _RND256(u32 sz)
{ {
u32 val; return ((sz >> 8) + ((sz & 255) ? 1 : 0)) << 8;
val = ((sz >> 8) + ((sz & 255) ? 1 : 0)) << 8;
return val;
} }
static inline u32 _RND512(u32 sz) static inline u32 _RND512(u32 sz)
{ {
u32 val; return ((sz >> 9) + ((sz & 511) ? 1 : 0)) << 9;
val = ((sz >> 9) + ((sz & 511) ? 1 : 0)) << 9;
return val;
} }
#define STRUCT_PACKED __attribute__ ((packed)) #define STRUCT_PACKED __attribute__ ((packed))
......
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