sfc: Make buffer table indices and counts consistently unsigned
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 13 Feb 2012 23:14:23 +0000 (23:14 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Thu, 16 Feb 2012 00:25:08 +0000 (00:25 +0000)
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/nic.c

index f526877..59c0583 100644 (file)
@@ -81,8 +81,8 @@ struct efx_special_buffer {
        void *addr;
        dma_addr_t dma_addr;
        unsigned int len;
-       int index;
-       int entries;
+       unsigned int index;
+       unsigned int entries;
 };
 
 /**
index 1bb41ff..2bdfb63 100644 (file)
@@ -192,7 +192,7 @@ static void
 efx_init_special_buffer(struct efx_nic *efx, struct efx_special_buffer *buffer)
 {
        efx_qword_t buf_desc;
-       int index;
+       unsigned int index;
        dma_addr_t dma_addr;
        int i;