]> git.baikalelectronics.ru Git - kernel.git/commit
ipack: Improve a size determination in ipack_bus_register()
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 15 May 2017 09:08:10 +0000 (11:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 May 2017 14:59:06 +0000 (16:59 +0200)
commit0f1fdd7dc1a82258384bcf3db1500a80de97bec6
tree4224f2af13bfeaa2a420f16394f18fad70b810aa
parent062afe2c583a6ac6f6b1f6324dbbfe8eee579b85
ipack: Improve a size determination in ipack_bus_register()

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>
Acked-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ipack/ipack.c