mirror of
https://github.com/torvalds/linux.git
synced 2024-12-16 16:12:52 +00:00
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: Namrata A Shettar <namrataashettar@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d85549a80b
commit
46c539054e
@ -702,7 +702,7 @@ static int imon_probe(struct usb_interface *interface,
|
||||
/* prevent races probing devices w/multiple interfaces */
|
||||
mutex_lock(&driver_lock);
|
||||
|
||||
context = kzalloc(sizeof(struct imon_context), GFP_KERNEL);
|
||||
context = kzalloc(sizeof(*context), GFP_KERNEL);
|
||||
if (!context)
|
||||
goto driver_unlock;
|
||||
|
||||
@ -782,11 +782,11 @@ static int imon_probe(struct usb_interface *interface,
|
||||
__func__, vfd_proto_6p);
|
||||
}
|
||||
|
||||
driver = kzalloc(sizeof(struct lirc_driver), GFP_KERNEL);
|
||||
driver = kzalloc(sizeof(*driver), GFP_KERNEL);
|
||||
if (!driver)
|
||||
goto free_context;
|
||||
|
||||
rbuf = kmalloc(sizeof(struct lirc_buffer), GFP_KERNEL);
|
||||
rbuf = kmalloc(sizeof(*rbuf), GFP_KERNEL);
|
||||
if (!rbuf)
|
||||
goto free_driver;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user