openocd: remove last NULL comparisons
[fw/openocd] / src / jtag / drivers / jlink.c
index 63bcda1f47ad31c323860a4a4644387fbf22b71c..319ca380a2b30b021776150725f046997ee74838 100644 (file)
@@ -573,7 +573,7 @@ static int jlink_open_device(uint32_t ifaces, bool *found_device)
                return ERROR_JTAG_INIT_FAILED;
        }
 
-       use_usb_location = (jtag_usb_get_location() != NULL);
+       use_usb_location = !!jtag_usb_get_location();
 
        if (!use_serial_number && !use_usb_address && !use_usb_location && num_devices > 1) {
                LOG_ERROR("Multiple devices found, specify the desired device");