On Wed, Jan 30, 2019 at 02:37:02PM +0000, Liam Merwick wrote: > From: Liam Merwick <liam.merw...@oracle.com> > > usb_ep_get() can return a Null pointer in the (albeit unlikely) case > that a NULL USBDevice is passed in via the 'dev' parameter.
That should never ever happen. > Reported by the Parfait static code analysis tool Try add "assert(dev != NULL)" to usb_ep_get() instead of sprinkling pointless checks all over the place. thanks, Gerd