diff --git a/services/spd/trusty/trusty.c b/services/spd/trusty/trusty.c index d6e5726796534eeb49ea9114f16488101dff2370..97f202cba7e6528bb17a15a8b36898d332af8cfc 100644 --- a/services/spd/trusty/trusty.c +++ b/services/spd/trusty/trusty.c @@ -451,7 +451,7 @@ static int32_t trusty_setup(void) uint32_t spsr; ns_ep_info = bl31_plat_get_next_image_ep_info(NON_SECURE); - if (!ep_info) { + if (ns_ep_info == NULL) { NOTICE("Trusty: non-secure image missing.\n"); return -1; }