Skip to content

Commit

Permalink
staging: brcm80211: Remove unnecessary assertions.
Browse files Browse the repository at this point in the history
Remove assertions on the size of several structures.  These structures are
never used anywhere.

Signed-off-by: Henry Ptasinski <henryp@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Henry Ptasinski authored and Greg Kroah-Hartman committed Oct 5, 2010
1 parent 47127f3 commit 8518a9e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/staging/brcm80211/sys/wlc_ampdu.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,6 @@ ampdu_info_t *BCMATTACHFN(wlc_ampdu_attach) (wlc_info_t *wlc)
int i;

/* some code depends on packed structures */
ASSERT(sizeof(struct dot11_bar) == DOT11_BAR_LEN);
ASSERT(sizeof(struct dot11_ba) == DOT11_BA_LEN + DOT11_BA_BITMAP_LEN);
ASSERT(sizeof(struct dot11_ctl_header) == DOT11_CTL_HDR_LEN);
ASSERT(sizeof(struct dot11_addba_req) == DOT11_ADDBA_REQ_LEN);
ASSERT(sizeof(struct dot11_addba_resp) == DOT11_ADDBA_RESP_LEN);
ASSERT(sizeof(struct dot11_delba) == DOT11_DELBA_LEN);
ASSERT(DOT11_MAXNUMFRAGS == NBITS(uint16));
ASSERT(ISPOWEROF2(AMPDU_TX_BA_MAX_WSIZE));
ASSERT(ISPOWEROF2(AMPDU_RX_BA_MAX_WSIZE));
Expand Down

0 comments on commit 8518a9e

Please sign in to comment.