From: Ben Hutchings Date: Mon, 1 Sep 2008 11:43:39 +0000 (+0100) Subject: sfc: Change first parameter type of {set,clear}_bit_le() to unsigned X-Git-Tag: v2.6.28-rc1~717^2~380 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=18c2fc0478d5eff08d78bf28635004ec9a9b3946;p=linux-2.6-omap-h63xx.git sfc: Change first parameter type of {set,clear}_bit_le() to unsigned This means the compiler doesn't need to use real division instructions. Signed-off-by: Ben Hutchings Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/sfc/net_driver.h b/drivers/net/sfc/net_driver.h index 219c74a772c..ab318f759b8 100644 --- a/drivers/net/sfc/net_driver.h +++ b/drivers/net/sfc/net_driver.h @@ -886,13 +886,13 @@ static inline struct efx_rx_buffer *efx_rx_buffer(struct efx_rx_queue *rx_queue, } /* Set bit in a little-endian bitfield */ -static inline void set_bit_le(int nr, unsigned char *addr) +static inline void set_bit_le(unsigned nr, unsigned char *addr) { addr[nr / 8] |= (1 << (nr % 8)); } /* Clear bit in a little-endian bitfield */ -static inline void clear_bit_le(int nr, unsigned char *addr) +static inline void clear_bit_le(unsigned nr, unsigned char *addr) { addr[nr / 8] &= ~(1 << (nr % 8)); }