]> git.baikalelectronics.ru Git - kernel.git/commit
video: fbdev-MMP: Improve a size determination in path_init()
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 26 Apr 2018 10:24:18 +0000 (12:24 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Thu, 26 Apr 2018 10:24:18 +0000 (12:24 +0200)
commitb2c42c9366fd484cc114ab1f6583d8c372e64f94
tree493a72607af98a1931e3cf9b4a8afde0c8a4c239
parent92e6b250530061f7dbb1b4d38f4fada216a02212
video: fbdev-MMP: Improve a size determination in path_init()

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: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/mmp/hw/mmp_ctrl.c