net: mvpp2: Improve a size determination in two functions
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 17 Apr 2017 08:40:32 +0000 (10:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Apr 2017 17:55:08 +0000 (13:55 -0400)
commitbd6aaf5535a6782b04e84ea575d65e95d2e7acbc
treea8588f488ed33b6117dec75b615e94224fc0f627
parentc5b2ce24f3d27366135d542a98b596c056cb75f3
net: mvpp2: Improve a size determination in two functions

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