net: mvpp2: Improve two size determinations in mvpp2_probe()
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 17 Apr 2017 06:38:32 +0000 (08:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Apr 2017 17:55:07 +0000 (13:55 -0400)
commit0b92e5945bdfed7051e03f2d03f3c5d3555416f3
treebfff95de793dc0d0c492390bf86f1a815000bc8f
parent02c91ece4ee644fbe87933a870c660c0e8413d41
net: mvpp2: Improve two size determinations in mvpp2_probe()

Replace the specification of two data structures by pointer dereferences
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