aboutsummaryrefslogtreecommitdiff
path: root/src/jtag/drivers/mpsse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/jtag/drivers/mpsse.c')
-rw-r--r--src/jtag/drivers/mpsse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jtag/drivers/mpsse.c b/src/jtag/drivers/mpsse.c
index 9ba1e25..4e64fdb 100644
--- a/src/jtag/drivers/mpsse.c
+++ b/src/jtag/drivers/mpsse.c
@@ -119,7 +119,7 @@ static bool device_location_equal(struct libusb_device *device, const char *loca
LOG_DEBUG("device path has %i steps", path_len);
ptr = strtok(loc, "-:");
- if (ptr == NULL) {
+ if (!ptr) {
LOG_DEBUG("no ':' in path");
goto done;
}
@@ -131,7 +131,7 @@ static bool device_location_equal(struct libusb_device *device, const char *loca
path_step = 0;
while (path_step < 7) {
ptr = strtok(NULL, ".,");
- if (ptr == NULL) {
+ if (!ptr) {
LOG_DEBUG("no more tokens in path at step %i", path_step);
break;
}