alx: make sizes unsigned
authorJohannes Berg <[email protected]>
Sat, 29 Jun 2013 17:23:16 +0000 (19:23 +0200)
committerDavid S. Miller <[email protected]>
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 <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
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;