Skip to content

Commit

Permalink
alx: make sizes unsigned
Browse files Browse the repository at this point in the history
The ring sizes should be unsigned, pointed out by Ben Hutchings.

Reported-by: Ben Hutchings <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
jmberg authored and davem330 committed Jul 1, 2013
1 parent c43861d commit 4a134c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/net/ethernet/atheros/alx/alx.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,16 @@ struct alx_priv {
struct {
dma_addr_t dma;
void *virt;
int size;
unsigned int size;
} descmem;

/* protect int_mask updates */
spinlock_t irq_lock;
u32 int_mask;

int tx_ringsz;
int rx_ringsz;
int rxbuf_size;
unsigned int tx_ringsz;
unsigned int rx_ringsz;
unsigned int rxbuf_size;

struct napi_struct napi;
struct alx_tx_queue txq;
Expand Down

0 comments on commit 4a134c3

Please sign in to comment.