* Fixed warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37578 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
98e415e567
commit
fd5c0135e2
@ -60,6 +60,18 @@ struct internal_intr {
|
||||
static int32 intr_wrapper(void *data);
|
||||
|
||||
|
||||
static int
|
||||
fls(int mask)
|
||||
{
|
||||
int bit;
|
||||
if (mask == 0)
|
||||
return (0);
|
||||
for (bit = 1; mask != 1; bit++)
|
||||
mask = (unsigned int)mask >> 1;
|
||||
return (bit);
|
||||
}
|
||||
|
||||
|
||||
static area_id
|
||||
map_mem(void **virtualAddr, phys_addr_t _phy, size_t size, uint32 protection,
|
||||
const char *name)
|
||||
@ -767,18 +779,6 @@ pci_get_max_read_req(device_t dev)
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
fls(int mask)
|
||||
{
|
||||
int bit;
|
||||
if (mask == 0)
|
||||
return (0);
|
||||
for (bit = 1; mask != 1; bit++)
|
||||
mask = (unsigned int)mask >> 1;
|
||||
return (bit);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
pci_set_max_read_req(device_t dev, int size)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user