X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Frtos%2Friot.c;h=fb5d1b29d8ad7de2d4ee878e9f98ab5fcf2651ed;hb=c0c7d6fe8b04f521a7262303083ef5eb6ebaf4e5;hp=6652db651104cf39e63b0502f12e557758132b48;hpb=54e699b2601036e384a124657aa1fbdd9ff2dc87;p=openocd.git diff --git a/src/rtos/riot.c b/src/rtos/riot.c index 6652db6511..fb5d1b29d8 100644 --- a/src/rtos/riot.c +++ b/src/rtos/riot.c @@ -401,7 +401,7 @@ static int riot_create(struct target *target) /* lookup if target is supported by RIOT */ while ((i < RIOT_NUM_PARAMS) && - (0 != strcmp(riot_params_list[i].target_name, target->type->name))) { + (strcmp(riot_params_list[i].target_name, target->type->name) != 0)) { i++; } if (i >= RIOT_NUM_PARAMS) {