vme: fake: Improve five size determinations in fake_init()
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 25 Aug 2017 07:46:13 +0000 (09:46 +0200)
committerMartyn Welch <martyn.welch@collabora.co.uk>
Fri, 13 Oct 2017 20:32:02 +0000 (21:32 +0100)
commit246740656a37495c7a0b87c7dcfbb9b5d9bae9fd
tree850149bb9b799c63ef56ff355523903647e68fd0
parentef544fbc53badd3ae1c85980211bd39419c4082a
vme: fake: Improve five size determinations in fake_init()

Replace the specification of data structures by pointer dereferences
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: Martyn Welch <martyn@welchs.me.uk>
drivers/vme/bridges/vme_fake.c