From: Ahmed S. Darwish Date: Sat, 6 Jan 2007 13:18:52 +0000 (+0200) Subject: HID: tiny patch to remove a kmalloc cast X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d6509c36ba333282362e5f9769869f8a8d790aaf;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git HID: tiny patch to remove a kmalloc cast Remove unnecessary cast. Signed-off-by: Ahmed Darwish Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 18c2b3cf6bcc..2fcfdbb43cd3 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -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;