]> git.karo-electronics.de Git - linux-beck.git/commitdiff
sfc: Change first parameter type of {set,clear}_bit_le() to unsigned
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 1 Sep 2008 11:43:39 +0000 (12:43 +0100)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 3 Sep 2008 13:53:42 +0000 (09:53 -0400)
This means the compiler doesn't need to use real division instructions.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/sfc/net_driver.h

index 219c74a772c32deb333b62bef44b3dd2422f18ba..ab318f759b81ec672edbf84e6751f8290f25bb0f 100644 (file)
@@ -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));
 }