Fix some statical clang analyzer warnings.
This commit is contained in:
parent
3adc33cf89
commit
0a25601db3
@ -799,9 +799,6 @@ usb_config_parse(struct usb_device *udev, uint8_t iface_index, uint8_t cmd)
|
||||
/* find maximum number of endpoints */
|
||||
if (ep_max < temp)
|
||||
ep_max = temp;
|
||||
|
||||
/* optimalisation */
|
||||
id = (struct usb_interface_descriptor *)ed;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -341,7 +341,6 @@ uhub_reattach_port(struct uhub_softc *sc, uint8_t portno)
|
||||
|
||||
DPRINTF("reattaching port %d\n", portno);
|
||||
|
||||
err = 0;
|
||||
timeout = 0;
|
||||
udev = sc->sc_udev;
|
||||
child = usb_bus_port_get_device(udev->bus,
|
||||
|
@ -802,7 +802,6 @@ usb_msc_eject(struct usb_device *udev, uint8_t iface_index, int method)
|
||||
if (sc == NULL)
|
||||
return (USB_ERR_INVAL);
|
||||
|
||||
err = 0;
|
||||
switch (method) {
|
||||
case MSC_EJECT_STOPUNIT:
|
||||
err = bbb_command_start(sc, DIR_IN, 0, NULL, 0,
|
||||
@ -844,6 +843,7 @@ usb_msc_eject(struct usb_device *udev, uint8_t iface_index, int method)
|
||||
break;
|
||||
default:
|
||||
DPRINTF("Unknown eject method (%d)\n", method);
|
||||
err = 0;
|
||||
break;
|
||||
}
|
||||
DPRINTF("Eject CD command status: %s\n", usbd_errstr(err));
|
||||
|
Loading…
x
Reference in New Issue
Block a user