]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
rt2x00: make const array glrt_table static
authorColin Ian King <colin.king@canonical.com>
Tue, 11 Jul 2017 11:47:33 +0000 (12:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Jul 2017 16:23:56 +0000 (09:23 -0700)
commitbf98bd0be1ba509c5e6d77524ffac192f1edb2dd
treeeadcd3836e5eb053b02a15f97b789358c2863dd3
parentf56ff774871d95f60c3f858419cf7424e6c361cf
rt2x00: make const array glrt_table static

Don't populate array glrt_table on the stack but make it static.
Makes the object code a smaller by over 670 bytes:

Before:
   text    data     bss     dec     hex filename
 131772    4733       0  136505   21539 rt2800lib.o

After:
   text    data     bss     dec     hex filename
 131043    4789       0  135832   21298 rt2800lib.o

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireless/ralink/rt2x00/rt2800lib.c