Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109439
b: refs/heads/master
c: 445df54
h: refs/heads/master
i:
  109437: ac63f86
  109435: 79c2e65
  109431: 22de7e1
  109423: df45b13
  109407: edd50a9
  109375: ceef95a
  109311: ab708d2
v: v3
  • Loading branch information
Boaz Harrosh authored and John W. Linville committed Sep 2, 2008
1 parent 27c7ed5 commit 7ae2b0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 2b58b209399844995ad48e421267e359e16c03db
refs/heads/master: 445df54fec7c1924f44018c4db2a9613b877f10e
5 changes: 2 additions & 3 deletions trunk/drivers/net/wireless/rt2x00/rt2x00reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ struct rt2x00_field32 {
*/
#define is_power_of_two(x) ( !((x) & ((x)-1)) )
#define low_bit_mask(x) ( ((x)-1) & ~(x) )
#define is_valid_mask(x) is_power_of_two(1 + (x) + low_bit_mask(x))
#define is_valid_mask(x) is_power_of_two(1LU + (x) + low_bit_mask(x))

/*
* Macro's to find first set bit in a variable.
Expand Down Expand Up @@ -173,8 +173,7 @@ struct rt2x00_field32 {
* does not exceed the given typelimit.
*/
#define FIELD_CHECK(__mask, __type) \
BUILD_BUG_ON(!__builtin_constant_p(__mask) || \
!(__mask) || \
BUILD_BUG_ON(!(__mask) || \
!is_valid_mask(__mask) || \
(__mask) != (__type)(__mask)) \

Expand Down

0 comments on commit 7ae2b0c

Please sign in to comment.