if (i2o_parm_field_get(i2o_dev, 0x0000, 0, &type, 1) || (type == 1))	/* SCSI bus */ 
if (i2o_parm_field_get(i2o_dev, 0x0000, 0, &type, 1) && (type == 0x01))	/* SCSI bus */ 
static struct i2o_scsi_host *i2o_scsi_host_alloc(struct i2o_controller *c){	struct i2o_scsi_host *i2o_shost;	struct i2o_device *i2o_dev;	struct Scsi_Host *scsi_host;	int max_channel = 0;	u8 type;	int i;	size_t size;	i2o_status_block *sb;	list_for_each_entry(i2o_dev, &c->devices, list)	    if (i2o_dev->lct_data.class_id == I2O_CLASS_BUS_ADAPTER_PORT) {		if (i2o_parm_field_get(i2o_dev, 0x0000, 0, &type, 1) || (type == 1))	/* SCSI bus */			max_channel++;	}	if (!max_channel) {		osm_warn("no channels found on %s\n", c->name);		return ERR_PTR(-EFAULT);	}	size = max_channel * sizeof(struct i2o_device *)	    + sizeof(struct i2o_scsi_host);	scsi_host = scsi_host_alloc(&i2o_scsi_host_template, size);	if (!scsi_host) {		osm_warn("Could not allocate SCSI host\n");		return ERR_PTR(-ENOMEM);	}	scsi_host->max_channel = max_channel - 1;	scsi_host->max_id = i2o_scsi_max_id;	scsi_host->max_lun = i2o_scsi_max_lun;	scsi_host->this_id = c->unit;	sb = c->status_block.virt;	scsi_host->sg_tablesize = (sb->inbound_frame_size -				   sizeof(struct i2o_message) / 4 - 6) / 2;	i2o_shost = (struct i2o_scsi_host *)scsi_host->hostdata;	i2o_shost->scsi_host = scsi_host;	i2o_shost->iop = c;	i = 0;	list_for_each_entry(i2o_dev, &c->devices, list)	    if (i2o_dev->lct_data.class_id == I2O_CLASS_BUS_ADAPTER_PORT) {		if (i2o_parm_field_get(i2o_dev, 0x0000, 0, &type, 1) || (type == 1))	/* only SCSI bus */			i2o_shost->channel[i++] = i2o_dev;		if (i >= max_channel)			break;	}	return i2o_shost;};
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/61fbfa8129c1771061a0e9f47747854293081c5b/i2o_scsi.c/buggy/drivers/message/i2o/i2o_scsi.c