net: mvpp2: Improve 27 size determinations
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 17 Apr 2017 08:30:29 +0000 (10:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Apr 2017 17:55:08 +0000 (13:55 -0400)
commitc5b2ce24f3d27366135d542a98b596c056cb75f3
tree569ade4c72cfdf655a253240937ef6aba9239a69
parent37df25e83b18f20c4152d08777430222a8166125
net: mvpp2: Improve 27 size determinations

Replace the specification of data structures by references to
a local variable as the parameter for the operator "sizeof"
to make the corresponding size determination a bit safer.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c