aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-core.c
diff options
context:
space:
mode:
authorAhmed S. Darwish <darwish.07@gmail.com>2007-01-06 08:18:52 -0500
committerJiri Kosina <jkosina@suse.cz>2007-01-08 10:05:24 -0500
commitd6509c36ba333282362e5f9769869f8a8d790aaf (patch)
treee78a46b1e0a239884603ff1cbf8ef349a04e9dc0 /drivers/hid/hid-core.c
parent35068976916fdef82d6e69ef1f8c9a1c47732759 (diff)
HID: tiny patch to remove a kmalloc cast
Remove unnecessary cast. Signed-off-by: Ahmed Darwish <darwish.07@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-core.c')
-rw-r--r--drivers/hid/hid-core.c2
1 files changed, 1 insertions, 1 deletions
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)
656 for (i = 0; i < HID_REPORT_TYPES; i++) 656 for (i = 0; i < HID_REPORT_TYPES; i++)
657 INIT_LIST_HEAD(&device->report_enum[i].report_list); 657 INIT_LIST_HEAD(&device->report_enum[i].report_list);
658 658
659 if (!(device->rdesc = (__u8 *)kmalloc(size, GFP_KERNEL))) { 659 if (!(device->rdesc = kmalloc(size, GFP_KERNEL))) {
660 kfree(device->collection); 660 kfree(device->collection);
661 kfree(device); 661 kfree(device);
662 return NULL; 662 return NULL;