Message ID | be5dc0ab-32e4-53a2-15a9-b8cee6e61939@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/hid/hid-lg.c b/drivers/hid/hid-lg.c index f4439dc64497..358b4c6f856d 100644 --- a/drivers/hid/hid-lg.c +++ b/drivers/hid/hid-lg.c @@ -727,7 +727,7 @@ static int lg_probe(struct hid_device *hdev, const struct hid_device_id *id) return -ENODEV; } - drv_data = kzalloc(sizeof(struct lg_drv_data), GFP_KERNEL); + drv_data = kzalloc(sizeof(*drv_data), GFP_KERNEL); if (!drv_data) return -ENOMEM;