Commit 1d0a2c5f authored by Namrata A Shettar's avatar Namrata A Shettar Committed by Greg Kroah-Hartman

staging: media: lirc: Replace data type with pointer in sizeof()

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 2b21f96d
...@@ -724,17 +724,17 @@ static int sasem_probe(struct usb_interface *interface, ...@@ -724,17 +724,17 @@ static int sasem_probe(struct usb_interface *interface,
/* Allocate memory */ /* Allocate memory */
alloc_status = 0; alloc_status = 0;
context = kzalloc(sizeof(struct sasem_context), GFP_KERNEL); context = kzalloc(sizeof(*context), GFP_KERNEL);
if (!context) { if (!context) {
alloc_status = 1; alloc_status = 1;
goto alloc_status_switch; goto alloc_status_switch;
} }
driver = kzalloc(sizeof(struct lirc_driver), GFP_KERNEL); driver = kzalloc(sizeof(*driver), GFP_KERNEL);
if (!driver) { if (!driver) {
alloc_status = 2; alloc_status = 2;
goto alloc_status_switch; goto alloc_status_switch;
} }
rbuf = kmalloc(sizeof(struct lirc_buffer), GFP_KERNEL); rbuf = kmalloc(sizeof(*rbuf), GFP_KERNEL);
if (!rbuf) { if (!rbuf) {
alloc_status = 3; alloc_status = 3;
goto alloc_status_switch; goto alloc_status_switch;
......
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