Module Name: src Committed By: riastradh Date: Thu Mar 3 05:49:22 UTC 2022
Modified Files: src/sys/dev/usb: usbnet.c Log Message: usbnet: Omit needless tests in usbnet_tick. It's harmless for us to schedule the tick task even if unp_dying or unp_stopping is set by now, because usbnet_stop will just wait for it to finish anyway, and the callout can't be scheduled again until the interface is done stopping and is brought back up again. No need for unp == NULL test -- un->un_pri is initialized well before this callout can be scheduled, and is nulled out only at the end of usbnet_detach, at which point we have already halted this callout. To generate a diff of this commit: cvs rdiff -u -r1.63 -r1.64 src/sys/dev/usb/usbnet.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.