]> git.gag.com Git - fw/openocd/blobdiff - src/jtag/drivers/stlink_usb.c
stlink: remove stlink_api command
[fw/openocd] / src / jtag / drivers / stlink_usb.c
index 957f1d40fdd7bd642837c48a7ab484b2e3e65a7d..597df6d00e8b26e47f6b9af977ee5a265af76a29 100644 (file)
@@ -1652,12 +1652,7 @@ static int stlink_usb_open(struct hl_interface_param_s *param, void **fd)
 
        api = h->version.jtag_api_max;
 
-       /* check that user has not requested certain api version
-        * and if they have check it is supported */
-       if ((param->api != 0) && (param->api <= h->version.jtag_api_max)) {
-               api = param->api;
-               LOG_INFO("using stlink api v%d", api);
-       }
+       LOG_INFO("using stlink api v%d", api);
 
        /* set the used jtag api, this will default to the newest supported version */
        h->jtag_api = api;