alx: make sizes unsigned
authorJohannes Berg <johannes@sipsolutions.net>
Sat, 29 Jun 2013 17:23:16 +0000 (19:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Jul 2013 20:18:19 +0000 (13:18 -0700)
The ring sizes should be unsigned, pointed out by Ben Hutchings.

Reported-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/alx/alx.h

index 50b3ae2b143d82db718359467320f61a9e20ec66..d71103dbf2cdf8a7328d5f1ca4b5216a38b73d78 100644 (file)
@@ -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;
This page took 0.029211 seconds and 5 git commands to generate.