Skip to content

Commit

Permalink
remove identical condition (thx to: Martin Strunz)
Browse files Browse the repository at this point in the history
  • Loading branch information
uecker committed Jul 15, 2024
1 parent 855b7d3 commit bac1d48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nn/nn.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ void nn_clone_args(nn_t dst, nn_t src)
static int get_index_from_name(int N, const char* names[N], const char* name)
{
for (int i = 0; i < N; i++)
if ((names[i] != NULL) && (names[i] != NULL) && ((0 == strcmp(name, names[i]))))
if ((names[i] != NULL) && ((0 == strcmp(name, names[i]))))
return i;
return -1;
}
Expand Down

0 comments on commit bac1d48

Please sign in to comment.