summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/wlan/if_run.c
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2011-04-01 03:27:55 +0000
committerkevlo <kevlo@FreeBSD.org>2011-04-01 03:27:55 +0000
commit0800007c22df631ca88cd1d3f093767430df780b (patch)
tree18c72dd2b80872b29137b766ce00735ac433f57e /sys/dev/usb/wlan/if_run.c
parente2441d5fc676eaee03d8c1043a18b0835dfcfcc6 (diff)
downloadFreeBSD-src-0800007c22df631ca88cd1d3f093767430df780b.zip
FreeBSD-src-0800007c22df631ca88cd1d3f093767430df780b.tar.gz
- Minor style(9) cleanup
- Make functions static
Diffstat (limited to 'sys/dev/usb/wlan/if_run.c')
-rw-r--r--sys/dev/usb/wlan/if_run.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/dev/usb/wlan/if_run.c b/sys/dev/usb/wlan/if_run.c
index 6366db0..2cd147c 100644
--- a/sys/dev/usb/wlan/if_run.c
+++ b/sys/dev/usb/wlan/if_run.c
@@ -71,8 +71,8 @@ __FBSDID("$FreeBSD$");
#define USB_DEBUG_VAR run_debug
#include <dev/usb/usb_debug.h>
-#include "if_runreg.h"
-#include "if_runvar.h"
+#include <dev/usb/wlan/if_runreg.h>
+#include <dev/usb/wlan/if_runvar.h>
#define nitems(_a) (sizeof((_a)) / sizeof((_a)[0]))
@@ -523,7 +523,7 @@ static const struct usb_config run_config[RUN_N_XFER] = {
}
};
-int
+static int
run_match(device_t self)
{
struct usb_attach_arg *uaa = device_get_ivars(self);
@@ -604,7 +604,7 @@ run_attach(device_t self)
RUN_UNLOCK(sc);
ifp = sc->sc_ifp = if_alloc(IFT_IEEE80211);
- if(ifp == NULL){
+ if (ifp == NULL) {
device_printf(sc->sc_dev, "can not if_alloc()\n");
goto detach;
}
@@ -958,7 +958,7 @@ run_unsetup_tx_list(struct run_softc *sc, struct run_endpoint_queue *pq)
}
}
-int
+static int
run_load_microcode(struct run_softc *sc)
{
usb_device_request_t req;
@@ -1018,7 +1018,8 @@ run_load_microcode(struct run_softc *sc)
USETW(req.wValue, 8);
USETW(req.wIndex, 0);
USETW(req.wLength, 0);
- if ((error = usbd_do_request(sc->sc_udev, &sc->sc_mtx, &req, NULL)) != 0) {
+ if ((error = usbd_do_request(sc->sc_udev, &sc->sc_mtx, &req, NULL))
+ != 0) {
device_printf(sc->sc_dev, "firmware reset failed\n");
goto fail;
}
OpenPOWER on IntegriCloud