]> 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)
commit7d0bc7cd0ab2755db898e5374ed8049ca9c3c020
treece57c8a1f1ff3c1c17408d11d9668271d5832098
parentf4d5e32837f978e1c44b8ce891016b776cc738a7
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