]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: stmmac: make const array route_possibilities static
authorColin Ian King <colin.king@canonical.com>
Tue, 11 Jul 2017 11:18:48 +0000 (12:18 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Jul 2017 16:23:56 +0000 (09:23 -0700)
commitf56ff774871d95f60c3f858419cf7424e6c361cf
tree6277875137f2a36cc3845250e03817e2cd524cc5
parent22c608919bd4f0fae8e70e1284c83e0f1d507f34
net: stmmac: make const array route_possibilities static

Don't populate array route_possibilities on the stack but make it
static const.  Makes the object code a little smaller by 85 bytes:

Before:
   text    data     bss     dec     hex filename
   9901    2448       0   12349    303d dwmac4_core.o

After:
   text    data     bss     dec     hex filename
   9760    2504       0   12264    2fe8 dwmac4_core.o

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c