From fd5c0135e2154c71068317acb8213a1d3543df05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 19 Jul 2010 10:18:04 +0000 Subject: [PATCH] * Fixed warning. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37578 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/libs/compat/freebsd_network/bus.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/libs/compat/freebsd_network/bus.c b/src/libs/compat/freebsd_network/bus.c index b54ff0478b..a8b721c5ef 100644 --- a/src/libs/compat/freebsd_network/bus.c +++ b/src/libs/compat/freebsd_network/bus.c @@ -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) {