Message ID | de8a2dfa-1154-2f27-aeb2-a7af405c7d61@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index b943b2ebadc1..1f75c1c022f0 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -67,7 +67,7 @@ struct hid_report *hid_register_report(struct hid_device *device, unsigned type, if (report_enum->report_id_hash[id]) return report_enum->report_id_hash[id]; - report = kzalloc(sizeof(struct hid_report), GFP_KERNEL); + report = kzalloc(sizeof(*report), GFP_KERNEL); if (!report) return NULL;