diff options
author | Namrata A Shettar <namrataashettar@gmail.com> | 2016-09-24 21:31:34 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-27 13:19:10 +0200 |
commit | 1d0a2c5f2c53dc116e4e5dc9ef4661baf2f597ec (patch) | |
tree | 6c9e2439155b85aebad71d2c8f69d31fad4a9e5b | |
parent | 2b21f96d6b8ac0ee91993abf9865e20fd0d215a8 (diff) | |
download | lwn-1d0a2c5f2c53dc116e4e5dc9ef4661baf2f597ec.tar.gz lwn-1d0a2c5f2c53dc116e4e5dc9ef4661baf2f597ec.zip |
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: Namrata A Shettar <namrataashettar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/media/lirc/lirc_sasem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/media/lirc/lirc_sasem.c b/drivers/staging/media/lirc/lirc_sasem.c index 65b7bd4681ac..4678ae10b030 100644 --- a/drivers/staging/media/lirc/lirc_sasem.c +++ b/drivers/staging/media/lirc/lirc_sasem.c @@ -724,17 +724,17 @@ static int sasem_probe(struct usb_interface *interface, /* Allocate memory */ alloc_status = 0; - context = kzalloc(sizeof(struct sasem_context), GFP_KERNEL); + context = kzalloc(sizeof(*context), GFP_KERNEL); if (!context) { alloc_status = 1; goto alloc_status_switch; } - driver = kzalloc(sizeof(struct lirc_driver), GFP_KERNEL); + driver = kzalloc(sizeof(*driver), GFP_KERNEL); if (!driver) { alloc_status = 2; goto alloc_status_switch; } - rbuf = kmalloc(sizeof(struct lirc_buffer), GFP_KERNEL); + rbuf = kmalloc(sizeof(*rbuf), GFP_KERNEL); if (!rbuf) { alloc_status = 3; goto alloc_status_switch; |