Skip to content

Commit

Permalink
Staging: brcm80211: hnddma.c: fix compiler warning
Browse files Browse the repository at this point in the history
Change the field types of dma_info_t to make comparing values easier
(and correct.)  No need to keep rxbufsize as a u16, it can be an
unsigned int to make things easier.

Cc: Brett Rudley <brudley@broadcom.com>
Cc: Henry Ptasinski <henryp@broadcom.com>
Cc: Nohee Ko <noheek@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed Oct 8, 2010
1 parent 96e76e6 commit c09cc58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/brcm80211/util/hnddma.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ typedef struct dma_info {
u32 rcvptrbase; /* Base for ptr reg when using unaligned descriptors */

/* tunables */
u16 rxbufsize; /* rx buffer size in bytes,
unsigned int rxbufsize; /* rx buffer size in bytes,
* not including the extra headroom
*/
uint rxextrahdrroom; /* extra rx headroom, reverseved to assist upper stack
Expand All @@ -138,7 +138,7 @@ typedef struct dma_info {
* Some dongle driver may not need it.
*/
uint nrxpost; /* # rx buffers to keep posted */
uint rxoffset; /* rxcontrol offset */
unsigned int rxoffset; /* rxcontrol offset */
uint ddoffsetlow; /* add to get dma address of descriptor ring, low 32 bits */
uint ddoffsethigh; /* high 32 bits */
uint dataoffsetlow; /* add to get dma address of data buffer, low 32 bits */
Expand Down

0 comments on commit c09cc58

Please sign in to comment.