Commit 46c53905 authored by Namrata A Shettar's avatar Namrata A Shettar Committed by Greg Kroah-Hartman

staging: media: lirc: Replace data type with pointer of same type

Replace data type with pointer of same type in sizeof() to resolve
checkpatch issue.
Signed-off-by: default avatarNamrata A Shettar <namrataashettar@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d85549a8
...@@ -702,7 +702,7 @@ static int imon_probe(struct usb_interface *interface, ...@@ -702,7 +702,7 @@ static int imon_probe(struct usb_interface *interface,
/* prevent races probing devices w/multiple interfaces */ /* prevent races probing devices w/multiple interfaces */
mutex_lock(&driver_lock); mutex_lock(&driver_lock);
context = kzalloc(sizeof(struct imon_context), GFP_KERNEL); context = kzalloc(sizeof(*context), GFP_KERNEL);
if (!context) if (!context)
goto driver_unlock; goto driver_unlock;
...@@ -782,11 +782,11 @@ static int imon_probe(struct usb_interface *interface, ...@@ -782,11 +782,11 @@ static int imon_probe(struct usb_interface *interface,
__func__, vfd_proto_6p); __func__, vfd_proto_6p);
} }
driver = kzalloc(sizeof(struct lirc_driver), GFP_KERNEL); driver = kzalloc(sizeof(*driver), GFP_KERNEL);
if (!driver) if (!driver)
goto free_context; goto free_context;
rbuf = kmalloc(sizeof(struct lirc_buffer), GFP_KERNEL); rbuf = kmalloc(sizeof(*rbuf), GFP_KERNEL);
if (!rbuf) if (!rbuf)
goto free_driver; goto free_driver;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment