Skip to content

Commit

Permalink
sfc: Make buffer table indices and counts consistently unsigned
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
  • Loading branch information
Ben Hutchings committed Feb 16, 2012
1 parent a606f43 commit 5bbe2f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/sfc/net_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

/**
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/ethernet/sfc/nic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 5bbe2f4

Please sign in to comment.