]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvpp2: Improve another size determination in mvpp2_prs_default_init()
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 17 Apr 2017 07:12:34 +0000 (09:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Apr 2017 17:55:07 +0000 (13:55 -0400)
commite73799c9622a1f16915dbb289439a8e1c12e21fb
treecdf2dfdf5336a7af7827f8a20553e0647347a914
parent322ba0dbe9aa6a7b7d5ee3c7ca14eaa0fe529f35
net: mvpp2: Improve another size determination in mvpp2_prs_default_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: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c