]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
sb1000.c: make const arrays static
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 30 Mar 2008 23:13:00 +0000 (01:13 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 17 Apr 2008 00:41:44 +0000 (20:41 -0400)
commit7dd73bbcc99b755436d8dc4b412d23e92a685f4d
treeb202e7e56b9c1dbd497fd90e40e0bc2dda25cc58
parenta8d06342baab56901bfd70c4f66be382d4b9967d
sb1000.c: make const arrays static

This patch replaces automatic constant arrays a-la

    const unsigned char Command0[6] = {0x80, 0x16, 0x00, 0x00, 0x00, 0x00};

with static ones. Size difference for 32bit x86:

text  data   bss     dec     hex filename
5418   129     0    5547    15ab linux-2.6.inline-ALLYES/drivers/net/sb1000.o
5396   129     0    5525    1595 linux-2.6.followup-ALLYES/drivers/net/sb1000.o

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/sb1000.c