if((!j) && !quiet) printk(KERN_ERR "sisfb: Invalid mode '%s'\n", nameptr); 
 if((!j) && !quiet) printk(KERN_ERR "sisfb: Invalid mode '%s'\n", nameptr); 
sisfb_search_mode(char *name, BOOLEAN quiet){	int i = 0;	unsigned int j = 0, xres = 0, yres = 0, depth = 0, rate = 0;	char strbuf[16], strbuf1[20];	char *nameptr = name;	/* BEWARE: We don't know the hardware specs yet and there is no ivideo */	if(name == NULL) {	   if(!quiet) {	      printk(KERN_ERR "sisfb: Internal error, using default mode.\n");	   }	   sisfb_mode_idx = DEFAULT_MODE;	   return;	}#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)        if(!strnicmp(name, sisbios_mode[MODE_INDEX_NONE].name, strlen(name))) {	   if(!quiet) {	      printk(KERN_ERR "sisfb: Mode 'none' not supported anymore. Using default.\n");	   }	   sisfb_mode_idx = DEFAULT_MODE;	   return;	}#endif	if(strlen(name) <= 19) {	   strcpy(strbuf1, name);	   for(i=0; i<strlen(strbuf1); i++) {	      if(strbuf1[i] < '0' || strbuf1[i] > '9') strbuf1[i] = ' ';	   }	   /* This does some fuzzy mode naming detection */	   if(sscanf(strbuf1, "%u %u %u %u", &xres, &yres, &depth, &rate) == 4) {	      if((rate <= 32) || (depth > 32)) {	         j = rate; rate = depth; depth = j;	      }	      sprintf(strbuf, "%ux%ux%u", xres, yres, depth);	      nameptr = strbuf;	      sisfb_parm_rate = rate;	   } else if(sscanf(strbuf1, "%u %u %u", &xres, &yres, &depth) == 3) {	      sprintf(strbuf, "%ux%ux%u", xres, yres, depth);	      nameptr = strbuf;	   } else {	      xres = 0;	      if((sscanf(strbuf1, "%u %u", &xres, &yres) == 2) && (xres != 0)) {	         sprintf(strbuf, "%ux%ux8", xres, yres);	         nameptr = strbuf;	      } else {	         sisfb_search_vesamode(simple_strtoul(name, NULL, 0), quiet);	         return;	      }	   }	}	i = 0; j = 0;	while(sisbios_mode[i].mode_no[0] != 0) {		if(!strnicmp(nameptr, sisbios_mode[i++].name, strlen(nameptr))) {		   	if(sisfb_fstn) {		      		if(sisbios_mode[i-1].mode_no[1] == 0x50 ||		         	   sisbios_mode[i-1].mode_no[1] == 0x56 ||		         	   sisbios_mode[i-1].mode_no[1] == 0x53) continue;	           	} else {		      		if(sisbios_mode[i-1].mode_no[1] == 0x5a ||		         	   sisbios_mode[i-1].mode_no[1] == 0x5b) continue;		   	}		   	sisfb_mode_idx = i - 1;		   	j = 1;		   	break;		}	}	if((!j) && !quiet) printk(KERN_ERR "sisfb: Invalid mode '%s'\n", nameptr);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/544393fe584d333480659a4bed30f5295355df11/sis_main.c/clean/drivers/video/sis/sis_main.c