mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 09:41:44 +00:00
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 <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
parent
767e468c06
commit
18c2fc0478
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user