summaryrefslogtreecommitdiff
path: root/drivers/reset
diff options
context:
space:
mode:
authorKimberly Brown <kimbrownkd@gmail.com>2018-10-25 20:04:55 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-05 14:16:32 +0100
commitcd27f56fce4fedc975663ecebb8166444a80b75c (patch)
treeb7334499377d7ce9a1081caedcda02168922a10f /drivers/reset
parent651022382c7f8da46cb4872a545ee1da6d097d2a (diff)
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>
Diffstat (limited to 'drivers/reset')
0 files changed, 0 insertions, 0 deletions