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
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,