OSDN Git Service

media: s5p-mfc: Improve a size determination in s5p_mfc_alloc_memdev()
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 8 Sep 2017 20:30:09 +0000 (13:30 -0700)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 16 Oct 2017 23:50:30 +0000 (16:50 -0700)
commitd7f15bde0f25ee8a5ea3aad96522ba851a47a0b0
tree4b47486255d4b40cf9b458566c2b2a7b1ef4ffdc
parentf6cd32328965232ab1af4fd768999e6a0e351b81
media: s5p-mfc: Improve a size determination in s5p_mfc_alloc_memdev()

Replace the specification of a data structure by a pointer dereference
as the parameter for the operator "sizeof" to make the corresponding size
determination a bit safer according to the Linux coding style convention.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/s5p-mfc/s5p_mfc.c