Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=54f9e36cb83e7da17dc0596d365fe019a25c226f
Commit:     54f9e36cb83e7da17dc0596d365fe019a25c226f
Parent:     c8e4c77277ca5db0c4ddbfb4bc628b8abad585b0
Author:     Dmitry Torokhov <[EMAIL PROTECTED]>
AuthorDate: Fri Mar 16 00:57:25 2007 -0400
Committer:  Dmitry Torokhov <[EMAIL PROTECTED]>
CommitDate: Fri Mar 16 00:57:25 2007 -0400

    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 <[EMAIL PROTECTED]>
---
 drivers/input/input.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/drivers/input/input.c b/drivers/input/input.c
index 26393a6..5629e39 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -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);
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to