Input: simplify input_free_device()

Now that sysfs attributes that were marked for deletion can't access
their devices we do not need to set name, phys and uniq to NULL.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
Dmitry Torokhov 2007-03-16 00:57:25 -04:00
parent c8e4c77277
commit 54f9e36cb8
1 changed files with 1 additions and 7 deletions

View File

@ -1024,14 +1024,8 @@ EXPORT_SYMBOL(input_allocate_device);
*/ */
void input_free_device(struct input_dev *dev) void input_free_device(struct input_dev *dev)
{ {
if (dev) { if (dev)
mutex_lock(&dev->mutex);
dev->name = dev->phys = dev->uniq = NULL;
mutex_unlock(&dev->mutex);
input_put_device(dev); input_put_device(dev);
}
} }
EXPORT_SYMBOL(input_free_device); EXPORT_SYMBOL(input_free_device);