staging: gasket: use sizeof(*p) for memory allocation
authorKimberly Brown <kimbrownkd@gmail.com>
Fri, 26 Oct 2018 00:04:55 +0000 (20:04 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Nov 2018 13:16:32 +0000 (14:16 +0100)
commitcd27f56fce4fedc975663ecebb8166444a80b75c
treeb7334499377d7ce9a1081caedcda02168922a10f
parent651022382c7f8da46cb4872a545ee1da6d097d2a
staging: gasket: use sizeof(*p) for memory allocation

Use sizeof(*p) instead of sizeof(struct P) for memory allocation. This
change complies with the Linux kernel coding style. It improves
readability and decreases the opportunity for bugs if the pointer
variable type is changed. Issue found by checkpatch.

Signed-off-by: Kimberly Brown <kimbrownkd@gmail.com>
Acked-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gasket/gasket_interrupt.c
drivers/staging/gasket/gasket_page_table.c