staging: most: net: make array 'broadcast' static, shrinks object size
authorColin Ian King <colin.king@canonical.com>
Tue, 4 Sep 2018 15:47:07 +0000 (16:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 09:17:47 +0000 (11:17 +0200)
commit93f5715efdc23584526f0a157f13eb6c8698f376
treef6da1acffe7c81c13da468c7cda1bac99d4cd54b
parent08633dcb5a7cde2c7cdd4744b8c9e87e43e103f9
staging: most: net: make array 'broadcast' static, shrinks object size

Don't populate the array 'broadcast' on the stack but instead make it
static. Makes the object code smaller by 53 bytes:

Before:
   text    data     bss     dec     hex filename
  10511    1521     448   12480    30c0 drivers/staging/most/net/net.o

After:
   text    data     bss     dec     hex filename
  10394    1585     448   12427    308b drivers/staging/most/net/net.o

(gcc version 8.2.0 x86_64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/net/net.c