WinCE: Fixed incorrect check of return value, found by cppcheck
authorSean McBride <sean@rogue-research.com>
Thu, 28 Dec 2017 04:55:34 +0000 (23:55 -0500)
committerChris Dickens <christopher.a.dickens@gmail.com>
Fri, 29 Dec 2017 06:40:30 +0000 (22:40 -0800)
commit96b89f90d3ae794f66245e95296a007a1c6e71cd
tree390acb3bf5467ec8097c6b6a13f88e81c5d2c3c5
parent0b3d4c68d87a4ffda2a4e0ff86983f69599048ce
WinCE: Fixed incorrect check of return value, found by cppcheck

cppcheck was warning:

nullPointerRedundantCheck,libusb/os/wince_usb.c:280,warning,Either the condition '!discdevs' is redundant or there is possible null pointer dereference: discdevs.

In fact, the issue was just checking the wrong thing.

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/os/wince_usb.c
libusb/version_nano.h