Message ID | 0c363cc1-5532-e482-82bf-c8b59c2bd72f@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/input/tablet/gtco.c b/drivers/input/tablet/gtco.c index f2670872735f..6094241d4aa1 100644 --- a/drivers/input/tablet/gtco.c +++ b/drivers/input/tablet/gtco.c @@ -829,7 +829,7 @@ static int gtco_probe(struct usb_interface *usbinterface, struct usb_device *udev = interface_to_usbdev(usbinterface); /* Allocate memory for device structure */ - gtco = kzalloc(sizeof(struct gtco), GFP_KERNEL); + gtco = kzalloc(sizeof(*gtco), GFP_KERNEL); input_dev = input_allocate_device(); if (!gtco || !input_dev) { dev_err(&usbinterface->dev, "No more memory\n");