if (!(hiddev = kmalloc(sizeof(struct hiddev), GFP_KERNEL))) 
if (!(hiddev = kmalloc(sizeof(struct hiddev), GFP_KERNEL))) 
int hiddev_connect(struct hid_device *hid){	struct hiddev *hiddev;	int i;	int retval;	for (i = 0; i < hid->maxcollection; i++)		if (hid->collection[i].type == 		    HID_COLLECTION_APPLICATION &&		    !IS_INPUT_APPLICATION(hid->collection[i].usage))			break;	if (i == hid->maxcollection && (hid->quirks & HID_QUIRK_HIDDEV) == 0)		return -1; 	if (!(hiddev = kmalloc(sizeof(struct hiddev), GFP_KERNEL)))		return -1;	memset(hiddev, 0, sizeof(struct hiddev)); 	retval = usb_register_dev(hid->intf, &hiddev_class);	if (retval) {		err("Not able to get a minor for this device.");		kfree(hiddev);		return -1;	}	init_waitqueue_head(&hiddev->wait); 	hiddev_table[hid->intf->minor - HIDDEV_MINOR_BASE] = hiddev;	hiddev->hid = hid;	hiddev->exist = 1; 	hid->minor = hid->intf->minor;	hid->hiddev = hiddev;	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/05f091ab4c8c1f12f8dd38ee789489904fea327d/hiddev.c/clean/drivers/usb/input/hiddev.c