summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinayak Pane <vpane@nvidia.com>2014-05-21 16:04:01 -0700
committerMandar Padmawar <mpadmawar@nvidia.com>2014-06-25 00:49:12 -0700
commitec2f27f3ee36f15e6f580b8dd50f44378145d699 (patch)
treeaebcd1212b300ada7d2df0293d054de0029e10fb
parentb9389acf42f01d52b5796b64e04e4d5d499c2974 (diff)
HID: remove extra kfree
hidinput_disconnect() function frees hid drv data internally, remove unnecessary kfree from driver. Change-Id: Idd60a597d607d5a68eedb7dd51daeca867d31125 Reviewed-on: http://git-master/r/412819 (cherry picked from commit c7b31ae80b2364903095a98a32b31a37f98900b1) Signed-off-by: Jean Huang <jeanh@nvidia.com> Reviewed-on: http://git-master/r/427948 GVS: Gerrit_Virtual_Submit
-rw-r--r--drivers/hid/hid-nvidia-blake.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/hid/hid-nvidia-blake.c b/drivers/hid/hid-nvidia-blake.c
index e66f1f779c35..9bbc74501d88 100644
--- a/drivers/hid/hid-nvidia-blake.c
+++ b/drivers/hid/hid-nvidia-blake.c
@@ -555,7 +555,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,