axonram: Improve a size determination in axon_ram_probe()
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 3 Aug 2017 18:00:16 +0000 (20:00 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 1 Sep 2017 06:42:56 +0000 (16:42 +1000)
commita1bddf3991573f3dff2762bfca5e113f19889d5a
tree36697d653d3fdd9cab8d5e325b39544bf0d010ab
parentc86a93971ec7134672333e5a9758368a909d0854
axonram: Improve a size determination in axon_ram_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.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/sysdev/axonram.c