usb-tools / USBProxy-legacy

A proxy for USB devices, libUSB and gadgetFS - this project is unmaintained, try here: https://github.com/usb-tools/Facedancer
GNU General Public License v2.0
428 stars 102 forks source link

Remove unnecessary null pointer checks #9

Open elfring opened 9 years ago

elfring commented 9 years ago

An extra null pointer check is not needed in functions like the following.

dominicgs commented 9 years ago

Yes, there's a lot that can be cleaned up here, we could also use delete[] rather than looping over those arrays.

elfring commented 6 years ago

Are there a few update candidates left over?

dominicgs commented 6 years ago

Good point!