restore a redundant NULL-comparison, it silences compiler diagnostics

This commit is contained in:
Jeff Epler 2021-06-18 11:24:39 -05:00
parent e1d7e46e88
commit fa29be5aea
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ STATIC bool test_qstr(mp_obj_t obj, qstr name) {
} else {
// try builtin module
return mp_map_lookup((mp_map_t *)&mp_builtin_module_map,
MP_OBJ_NEW_QSTR(name), MP_MAP_LOOKUP);
MP_OBJ_NEW_QSTR(name), MP_MAP_LOOKUP) != NULL;
}
}