These two patches are a result of running the Parfait static analysis
tool on QEMU. The first patch is an optimisation to move an assignment
after a test and the second patch handles a number of potential NULL
pointer dereferences if usb_ep_get() returns NULL.
Liam Merwick (2):
usb: rearrange usb_ep_get()
usb: deal with potential Null pointer returned by usb_ep_get()
hw/usb/core.c | 29 ++++++++++++++++++++++++-----
1 file changed, 24 insertions(+), 5 deletions(-)
--
1.8.3.1