From 0800007c22df631ca88cd1d3f093767430df780b Mon Sep 17 00:00:00 2001 From: kevlo Date: Fri, 1 Apr 2011 03:27:55 +0000 Subject: - Minor style(9) cleanup - Make functions static --- sys/dev/usb/wlan/if_run.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'sys/dev/usb/wlan/if_run.c') 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 -#include "if_runreg.h" -#include "if_runvar.h" +#include +#include #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; } -- cgit v1.1