Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228054
b: refs/heads/master
c: 4c510e9
h: refs/heads/master
v: v3
  • Loading branch information
Larry Finger authored and Greg Kroah-Hartman committed Nov 10, 2010
1 parent c3223e8 commit 831b8db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a2ac9d69d69d8df88d4096903f5f76fe2de2345b
refs/heads/master: 4c510e95aef6138242ed4bc7fe29ee184bea413f
20 changes: 4 additions & 16 deletions trunk/drivers/staging/rtl8712/osdep_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,34 +218,22 @@ static inline void flush_signals_thread(void)

static inline u32 _RND8(u32 sz)
{
u32 val;

val = ((sz >> 3) + ((sz & 7) ? 1 : 0)) << 3;
return val;
return ((sz >> 3) + ((sz & 7) ? 1 : 0)) << 3;
}

static inline u32 _RND128(u32 sz)
{
u32 val;

val = ((sz >> 7) + ((sz & 127) ? 1 : 0)) << 7;
return val;
return ((sz >> 7) + ((sz & 127) ? 1 : 0)) << 7;
}

static inline u32 _RND256(u32 sz)
{
u32 val;

val = ((sz >> 8) + ((sz & 255) ? 1 : 0)) << 8;
return val;
return ((sz >> 8) + ((sz & 255) ? 1 : 0)) << 8;
}

static inline u32 _RND512(u32 sz)
{
u32 val;

val = ((sz >> 9) + ((sz & 511) ? 1 : 0)) << 9;
return val;
return ((sz >> 9) + ((sz & 511) ? 1 : 0)) << 9;
}

#define STRUCT_PACKED __attribute__ ((packed))
Expand Down

0 comments on commit 831b8db

Please sign in to comment.