bonding: use table for mode names
authorHolger Eitzenberger <holger@eitzenberger.org>
Wed, 10 Dec 2008 07:08:09 +0000 (23:08 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Dec 2008 07:08:09 +0000 (23:08 -0800)
commit77afc92b7915b6bb21584474a429a04603ac8963
tree12f9fd18dbc294a54a3d82531a5f8022cb601604
parent58402054264fa33b405d1abcbcd8e528507aac1a
bonding: use table for mode names

Use a small array in bond_mode_name() for the names, thus saving some
space:

before

    text     data      bss      dec    hex filename
   57736     9372      344    67452  1077c drivers/net/bonding/bonding.ko

after
    text     data      bss      dec    hex filename
   57441     9372      344    67157  10655 drivers/net/bonding/bonding.ko

Signed-off-by: Holger Eitzenberger <holger@eitzenberger.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c