提交 d6509c36 编写于 作者: A Ahmed S. Darwish 提交者: Jiri Kosina

HID: tiny patch to remove a kmalloc cast

Remove unnecessary cast.
Signed-off-by: NAhmed Darwish <darwish.07@gmail.com>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 35068976
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册