Skip to content

Commit ccee194

Browse files
committed
Removed unnecessary conditional checks.
1 parent eb55c28 commit ccee194

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/iwasm/libraries/wasi-nn/src/wasi_nn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ wasi_nn_load_by_name(wasm_exec_env_t exec_env, char *name, uint32_t name_len,
623623
for (model_idx = 0; model_idx < global_n_graphs; model_idx++) {
624624
char *model_name = wasi_nn_registry->model_names[model_idx];
625625

626-
if (model_name && strcmp(nul_terminated_name, model_name) != 0) {
626+
if (strcmp(nul_terminated_name, model_name) != 0) {
627627
continue;
628628
}
629629

0 commit comments

Comments
 (0)