]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
HID: remove extra kfree
authorVinayak Pane <vpane@nvidia.com>
Wed, 21 May 2014 23:04:01 +0000 (16:04 -0700)
committerTodd Poynter <tpoynter@nvidia.com>
Tue, 24 Jun 2014 02:16:05 +0000 (19:16 -0700)
hidinput_disconnect() function frees hid drv data
internally, remove unnecessary kfree from driver.

Reviewed-on: http://git-master/r/412819
(cherry picked from commit c7b31ae80b2364903095a98a32b31a37f98900b1)

Change-Id: Idd60a597d607d5a68eedb7dd51daeca867d31125
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/427397
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
drivers/hid/hid-nvidia-blake.c

index d2e8db6ca56fa630de7fc4bc5196081f2a5e1898..b5d9b418f0690d6ebfbc62ef54f2cd453153e2f5 100644 (file)
@@ -584,7 +584,6 @@ static void nvidia_remove(struct hid_device *hdev)
        device_remove_file(&hdev->dev, &dev_attr_mode);
 
        hid_hw_stop(hdev);
-       kfree(loc);
 }
 
 static int nvidia_input_mapped(struct hid_device *hdev, struct hid_input *hi,