mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
HID: tiny patch to remove a kmalloc cast
Remove unnecessary cast. Signed-off-by: Ahmed Darwish <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
parent
3506897691
commit
d6509c36ba
1 changed files with 1 additions and 1 deletions
|
|
@ -656,7 +656,7 @@ struct hid_device *hid_parse_report(__u8 *start, unsigned size)
|
|||
for (i = 0; i < HID_REPORT_TYPES; i++)
|
||||
INIT_LIST_HEAD(&device->report_enum[i].report_list);
|
||||
|
||||
if (!(device->rdesc = (__u8 *)kmalloc(size, GFP_KERNEL))) {
|
||||
if (!(device->rdesc = kmalloc(size, GFP_KERNEL))) {
|
||||
kfree(device->collection);
|
||||
kfree(device);
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue