mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2026-04-18 18:18:44 +00:00
Removed unnecessary conditional checks.
This commit is contained in:
parent
eb55c2814e
commit
ccee1941c2
|
|
@ -623,7 +623,7 @@ wasi_nn_load_by_name(wasm_exec_env_t exec_env, char *name, uint32_t name_len,
|
|||
for (model_idx = 0; model_idx < global_n_graphs; model_idx++) {
|
||||
char *model_name = wasi_nn_registry->model_names[model_idx];
|
||||
|
||||
if (model_name && strcmp(nul_terminated_name, model_name) != 0) {
|
||||
if (strcmp(nul_terminated_name, model_name) != 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user