Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 369847
b: refs/heads/master
c: d7dad55
h: refs/heads/master
i:
  369845: f88cc92
  369843: 5842f52
  369839: a6e8fd1
v: v3
  • Loading branch information
Emmanuel Grumbach authored and Johannes Berg committed Apr 16, 2013
1 parent df716cf commit 82b33b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 178bdb5791f18e33b5a368acee6fab5bb64396fe
refs/heads/master: d7dad550e6ddb96db9d3e4d322f7d1dd8a6a9c8d
5 changes: 3 additions & 2 deletions trunk/drivers/net/wireless/iwlwifi/mvm/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,9 @@ int iwl_mvm_rx_fw_error(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb,
u8 first_antenna(u8 mask)
{
BUILD_BUG_ON(ANT_A != BIT(0)); /* using ffs is wrong if not */
WARN_ON_ONCE(!mask); /* ffs will return 0 if mask is zeroed */
return (u8)(BIT(ffs(mask)));
if (WARN_ON_ONCE(!mask)) /* ffs will return 0 if mask is zeroed */
return BIT(0);
return BIT(ffs(mask) - 1);
}

/*
Expand Down

0 comments on commit 82b33b3

Please sign in to comment.