Re: usbd_new_device: consolidate error paths

2021-12-03 Thread Alexander Bluhm
On Fri, Dec 03, 2021 at 08:06:36AM +0100, Anton Lindqvist wrote: > Consolidate error paths in usbd_new_device, shaving of 14 lines. > > Comments? OK? OK bluhm@ > diff --git sys/dev/usb/usb_subr.c sys/dev/usb/usb_subr.c > index a11bc448ece..74fe4c3b4db 100644 > --- sys/dev/usb/usb_subr.c > +++ sy

usbd_new_device: consolidate error paths

2021-12-02 Thread Anton Lindqvist
Hi, Consolidate error paths in usbd_new_device, shaving of 14 lines. Comments? OK? diff --git sys/dev/usb/usb_subr.c sys/dev/usb/usb_subr.c index a11bc448ece..74fe4c3b4db 100644 --- sys/dev/usb/usb_subr.c +++ sys/dev/usb/usb_subr.c @@ -1086,11 +1086,8 @@ usbd_new_device(struct device *parent, str