OSDN Git Service

gigaset: convert strcmp chain to table lookup
authorTilman Schmidt <tilman@imap.cc>
Sun, 25 Oct 2009 09:30:57 +0000 (09:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Oct 2009 08:37:18 +0000 (01:37 -0700)
commit50e4fe91a5edbf680853b2ca37300a47ff860d63
tree1b361226a74b6fd3f2d7819507fb3154c43a6107
parentc35a87ff6678f92b12437843e88f9c89437ed4a7
gigaset: convert strcmp chain to table lookup

Replace the sequence of strcmp calls for interpreting ZSAU parameter
strings by a table of known strings and lookup loop to improve
readability.

Impact: readability improvement, no functional change
Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/gigaset/ev-layer.c
drivers/isdn/gigaset/gigaset.h