if (ih == (ihandle)0 || ih == (ihandle)-1) { 
if (ih == 0) { 
static void __init prom_check_displays(void){	unsigned long offset = reloc_offset();	struct prom_t *_prom = PTRRELOC(&prom);	char type[16], *path;	phandle node;	ihandle ih;	int i;	static unsigned char default_colors[] = {		0x00, 0x00, 0x00,		0x00, 0x00, 0xaa,		0x00, 0xaa, 0x00,		0x00, 0xaa, 0xaa,		0xaa, 0x00, 0x00,		0xaa, 0x00, 0xaa,		0xaa, 0xaa, 0x00,		0xaa, 0xaa, 0xaa,		0x55, 0x55, 0x55,		0x55, 0x55, 0xff,		0x55, 0xff, 0x55,		0x55, 0xff, 0xff,		0xff, 0x55, 0x55,		0xff, 0x55, 0xff,		0xff, 0xff, 0x55,		0xff, 0xff, 0xff	};	const unsigned char *clut;	prom_printf("Looking for displays\n");	for (node = 0; prom_next_node(&node); ) {		memset(type, 0, sizeof(type));		prom_getprop(node, "device_type", type, sizeof(type));		if (strcmp(type, RELOC("display")) != 0)			continue;		/* It seems OF doesn't null-terminate the path :-( */		path = RELOC(prom_scratch);		memset(path, 0, PROM_SCRATCH_SIZE);		/*		 * leave some room at the end of the path for appending extra		 * arguments		 */		if (call_prom("package-to-path", 3, 1, node, path, PROM_SCRATCH_SIZE-10) < 0)			continue;		prom_printf("found display   : %s, opening ... ", path);				ih = call_prom("open", 1, 1, path);		if (ih == (ihandle)0 || ih == (ihandle)-1) {			prom_printf("failed\n");			continue;		}		/* Success */		prom_printf("done\n");		prom_setprop(node, "linux,opened", NULL, 0);		/*		 * stdout wasn't a display node, pick the first we can find		 * for btext		 */		if (_prom->disp_node == 0)			_prom->disp_node = node;		/* Setup a useable color table when the appropriate		 * method is available. Should update this to set-colors */		clut = RELOC(default_colors);		for (i = 0; i < 32; i++, clut += 3)			if (prom_set_color(ih, i, clut[0], clut[1],					   clut[2]) != 0)				break;#ifdef CONFIG_LOGO_LINUX_CLUT224		clut = PTRRELOC(RELOC(logo_linux_clut224.clut));		for (i = 0; i < RELOC(logo_linux_clut224.clutsize); i++, clut += 3)			if (prom_set_color(ih, i + 32, clut[0], clut[1],					   clut[2]) != 0)				break;#endif /* CONFIG_LOGO_LINUX_CLUT224 */	}}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/1e86d1c648508fd50e6c9960576b87906a7906ad/prom_init.c/buggy/arch/ppc64/kernel/prom_init.c