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:
parent
af6edc2854
commit
8797cafe81
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226467
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user