svn commit: r226467 - head/sys/dev/usb/wlan

Bjoern A. Zeeb bz at FreeBSD.org
Mon Oct 17 13:51:00 UTC 2011


Author: bz
Date: Mon Oct 17 13:51:00 2011
New Revision: 226467
URL: http://svn.freebsd.org/changeset/base/226467

Log:
  Fix build after r226465.
  Cast void * to char * for arithmetics and make function return "no error".
  
  MFC after:	3 days

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

Modified: head/sys/dev/usb/wlan/if_rum.c
==============================================================================
--- head/sys/dev/usb/wlan/if_rum.c	Mon Oct 17 13:44:33 2011	(r226466)
+++ head/sys/dev/usb/wlan/if_rum.c	Mon Oct 17 13:51:00 2011	(r226467)
@@ -1418,7 +1418,7 @@ rum_write_multi(struct rum_softc *sc, ui
 		USETW(req.wIndex, reg + offset);
 		USETW(req.wLength, MIN(len - offset, 64));
 
-		error = rum_do_request(sc, &req, buf + offset);
+		error = rum_do_request(sc, &req, (char *)buf + offset);
 		if (error != 0) {
 			device_printf(sc->sc_dev,
 			    "could not multi write MAC register: %s\n",
@@ -1426,6 +1426,8 @@ rum_write_multi(struct rum_softc *sc, ui
 			return (error);
 		}
 	}
+
+	return (USB_ERR_NORMAL_COMPLETION);
 }
 
 static void


More information about the svn-src-all mailing list