summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2011-10-17 13:51:00 +0000
committerbz <bz@FreeBSD.org>2011-10-17 13:51:00 +0000
commitf40b47aea84ad8c0d73bf4fac1e522821ed33f9a (patch)
tree92cbd8a750747440af3849db0685a2f277a544b3 /sys/dev
parent316017b3ba07fee2bd29459284b7ec0d61120af2 (diff)
downloadFreeBSD-src-f40b47aea84ad8c0d73bf4fac1e522821ed33f9a.zip
FreeBSD-src-f40b47aea84ad8c0d73bf4fac1e522821ed33f9a.tar.gz
Fix build after r226465.
Cast void * to char * for arithmetics and make function return "no error". MFC after: 3 days
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/wlan/if_rum.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/usb/wlan/if_rum.c b/sys/dev/usb/wlan/if_rum.c
index 87d92aa..c51d485 100644
--- a/sys/dev/usb/wlan/if_rum.c
+++ b/sys/dev/usb/wlan/if_rum.c
@@ -1418,7 +1418,7 @@ rum_write_multi(struct rum_softc *sc, uint16_t reg, void *buf, size_t len)
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, uint16_t reg, void *buf, size_t len)
return (error);
}
}
+
+ return (USB_ERR_NORMAL_COMPLETION);
}
static void
OpenPOWER on IntegriCloud