]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP2+: Improve a size determination in sr_dev_init()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 3 Jun 2017 17:02:24 +0000 (19:02 +0200)
committerTony Lindgren <tony@atomide.com>
Thu, 8 Jun 2017 10:02:31 +0000 (03:02 -0700)
commit4eec9dbdbf228a89e790dc3c8f68d174b7d83b93
tree364f5e079321afe6cbc3ddf9bb3eed78fb562283
parent9384a964176f022aa81bee04fe1311891dc2394d
ARM: OMAP2+: Improve a size determination in sr_dev_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.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/sr_device.c