X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fjtag%2Fhla%2Fhla_interface.c;fp=src%2Fjtag%2Fhla%2Fhla_interface.c;h=b16a930a99c9984637b1b138284e3eb7b98561c1;hp=0aaf22f98ef096845a2d2f86e5fd1bbf6ae522a8;hb=391782318723915bd259eadf9469251c13c8fa9c;hpb=08ee7bb982b16742f52cfdc6c649d82ffa2eb177 diff --git a/src/jtag/hla/hla_interface.c b/src/jtag/hla/hla_interface.c index 0aaf22f98e..b16a930a99 100644 --- a/src/jtag/hla/hla_interface.c +++ b/src/jtag/hla/hla_interface.c @@ -147,7 +147,7 @@ int hl_interface_init_reset(void) static int hl_interface_khz(int khz, int *jtag_speed) { - if (hl_if.layout->api->speed == NULL) + if (!hl_if.layout->api->speed) return ERROR_OK; *jtag_speed = hl_if.layout->api->speed(hl_if.handle, khz, true); @@ -162,7 +162,7 @@ static int hl_interface_speed_div(int speed, int *khz) static int hl_interface_speed(int speed) { - if (hl_if.layout->api->speed == NULL) + if (!hl_if.layout->api->speed) return ERROR_OK; if (!hl_if.handle) {