projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
openocd: fix simple cases of NULL comparison
[fw/openocd]
/
src
/
jtag
/
drivers
/
libusb_helper.c
diff --git
a/src/jtag/drivers/libusb_helper.c
b/src/jtag/drivers/libusb_helper.c
index e214eb701259e68d25a5977a00945ed7319818b4..33f680cc66cfc835c3c93fe182266860241a651d 100644
(file)
--- a/
src/jtag/drivers/libusb_helper.c
+++ b/
src/jtag/drivers/libusb_helper.c
@@
-138,7
+138,7
@@
static bool jtag_libusb_match_serial(struct libusb_device_handle *device,
char *alternate_serial = adapter_get_alternate_serial(device, dev_desc);
/* check possible failures */
- if (
alternate_serial == NULL
)
+ if (
!alternate_serial
)
return false;
/* then compare and free the alternate serial */