list_del(&device->dlist);
static int tgt_device_destroy(int tid, uint64_t dev_id){	struct tgt_device *device;	struct tgt_target *target;	unsigned long flags;	target = target_find(tid);	if (!target)		return -ENOENT;	spin_lock_irqsave(&target->lock, flags);	device = tgt_device_find_nolock(target, dev_id);	spin_unlock_irqrestore(&target->lock, flags);	if (!device)		return -EINVAL;	list_del(&device->dlist);	tgt_sysfs_unregister_device(device);	return 0;}