if (tmp) 
if (tmp && (tmp != i2o_dev)) 
static int i2o_device_class_add(struct class_device *cd){	struct i2o_device *i2o_dev, *tmp;	struct i2o_controller *c;	i2o_dev = to_i2o_device(cd->dev);	c = i2o_dev->iop;	class_device_create_file(cd, &class_device_attr_class_id);	class_device_create_file(cd, &class_device_attr_tid);	/* create user entries for this device */	tmp = i2o_iop_find_device(i2o_dev->iop, i2o_dev->lct_data.user_tid);	if (tmp)		sysfs_create_link(&i2o_dev->device.kobj, &tmp->device.kobj,				  "user");	/* create user entries refering to this device */	list_for_each_entry(tmp, &c->devices, list)	    if (tmp->lct_data.user_tid == i2o_dev->lct_data.tid)		sysfs_create_link(&tmp->device.kobj,				  &i2o_dev->device.kobj, "user");	/* create parent entries for this device */	tmp = i2o_iop_find_device(i2o_dev->iop, i2o_dev->lct_data.parent_tid);	if (tmp)		sysfs_create_link(&i2o_dev->device.kobj, &tmp->device.kobj,				  "parent");	/* create parent entries refering to this device */	list_for_each_entry(tmp, &c->devices, list)	    if (tmp->lct_data.parent_tid == i2o_dev->lct_data.tid)		sysfs_create_link(&tmp->device.kobj,				  &i2o_dev->device.kobj, "parent");	return 0;};
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/61fbfa8129c1771061a0e9f47747854293081c5b/device.c/buggy/drivers/message/i2o/device.c