Fix build after r226465.

Cast void * to char * for arithmetics and make function return "no error".

MFC after:	3 days
This commit is contained in:
Bjoern A. Zeeb 2011-10-17 13:51:00 +00:00
parent af6edc2854
commit 8797cafe81
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226467

View File

@ -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