]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit597751cc98751bee25b6c089e5c6d11d7f05b8c6
tree36697d653d3fdd9cab8d5e325b39544bf0d010ab
parent9d570a6018e5355da00c9085d4adef96258ec07b
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