Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Apr 2011 03:27:55 +0000 (UTC)
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r220235 - head/sys/dev/usb/wlan
Message-ID:  <201104010327.p313Rtqg031138@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevlo
Date: Fri Apr  1 03:27:55 2011
New Revision: 220235
URL: http://svn.freebsd.org/changeset/base/220235

Log:
  - Minor style(9) cleanup
  - Make functions static

Modified:
  head/sys/dev/usb/wlan/if_run.c

Modified: head/sys/dev/usb/wlan/if_run.c
==============================================================================
--- head/sys/dev/usb/wlan/if_run.c	Fri Apr  1 01:30:21 2011	(r220234)
+++ head/sys/dev/usb/wlan/if_run.c	Fri Apr  1 03:27:55 2011	(r220235)
@@ -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_confi
     }
 };
 
-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
 	}
 }
 
-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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104010327.p313Rtqg031138>