video: ARM CLCD: Improve a size determination in clcdfb_probe()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 28 Mar 2018 14:34:29 +0000 (16:34 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Wed, 28 Mar 2018 14:34:29 +0000 (16:34 +0200)
commitd6f586163f86e91c34ccca72e2d9374bc77d990a
treefd076de559a812b0fa3994a40db88b6f102f946c
parentc97d7879f8cd3d1a35ca83cc60d70cfda71fa878
video: ARM CLCD: Improve a size determination in clcdfb_probe()

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>
Cc: Russell King <linux@armlinux.org.uk>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/amba-clcd.c