net: mvneta: Improve two size determinations in mvneta_init()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 16 Apr 2017 19:45:38 +0000 (21:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Apr 2017 17:55:06 +0000 (13:55 -0400)
commit5d6312ed57a909c86bb9472b2bbc012539392e7d
treeb151711df00b8923ad65379239c6fde66214e937
parent2911063011fc7adcb43c93e9c3e9dc7798f459f5
net: mvneta: Improve two size determinations in mvneta_init()

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/mvneta.c