Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6509c36 authored by Ahmed S. Darwish's avatar Ahmed S. Darwish Committed by Jiri Kosina
Browse files

HID: tiny patch to remove a kmalloc cast



Remove unnecessary cast.

Signed-off-by: default avatarAhmed Darwish <darwish.07@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 35068976
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;