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 f5268774150866e6499922630f889b8d4bae5bb8..59c0583182a53d3131fe196b62e689b08cc39fe5 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 1bb41fff3edc199d682b8db7978a515f934bd8dc..2bdfb6374ce8c6ecce3c4d098682351be0668f92 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;