[PATCH openEuler-5.10 v2 243/548] powerpc/prom_init: Fix improper check of prom_getprop()