提交 54f9e36c 编写于 作者: D Dmitry Torokhov

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: NDmitry Torokhov <dtor@mail.ru>
上级 c8e4c772
......@@ -1024,14 +1024,8 @@ EXPORT_SYMBOL(input_allocate_device);
*/
void input_free_device(struct input_dev *dev)
{
if (dev) {
mutex_lock(&dev->mutex);
dev->name = dev->phys = dev->uniq = NULL;
mutex_unlock(&dev->mutex);
if (dev)
input_put_device(dev);
}
}
EXPORT_SYMBOL(input_free_device);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册