]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: media: davinci_vpfe: Fix preferred form of passing a size
authorMadhumitha Prabakaran <madhumithabiw@gmail.com>
Mon, 25 Mar 2019 16:53:37 +0000 (11:53 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2019 20:44:53 +0000 (05:44 +0900)
commit440ea71355a0f058192b728ee141574a821191ab
treece57c8a1f1ff3c1c17408d11d9668271d5832098
parentde3d5bb469a49b5eb814ce06f0b2547b6ab093dd
Staging: media: davinci_vpfe: Fix preferred form of passing a size

Fix preferred form of passing a size of a struct to improve readability
and eradicate an opportunity for a bug when the pointer variable type is
changed but the corresponding sizeof that is passed to a memory
allocator is not.

Signed-off-by: Madhumitha Prabakaran <madhumithabiw@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/davinci_vpfe/dm365_ipipe.c