diff options
author | Tilman Schmidt <tilman@imap.cc> | 2009-10-25 05:30:57 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-29 04:37:18 -0400 |
commit | 50e4fe91a5edbf680853b2ca37300a47ff860d63 (patch) | |
tree | 1b361226a74b6fd3f2d7819507fb3154c43a6107 /drivers/isdn/gigaset/gigaset.h | |
parent | c35a87ff6678f92b12437843e88f9c89437ed4a7 (diff) |
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>
Diffstat (limited to 'drivers/isdn/gigaset/gigaset.h')
-rw-r--r-- | drivers/isdn/gigaset/gigaset.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/isdn/gigaset/gigaset.h b/drivers/isdn/gigaset/gigaset.h index 3c74cd164019..e963a6c2e86d 100644 --- a/drivers/isdn/gigaset/gigaset.h +++ b/drivers/isdn/gigaset/gigaset.h | |||
@@ -357,12 +357,6 @@ struct at_state_t { | |||
357 | struct bc_state *bcs; | 357 | struct bc_state *bcs; |
358 | }; | 358 | }; |
359 | 359 | ||
360 | struct resp_type_t { | ||
361 | unsigned char *response; | ||
362 | int resp_code; /* RSP_XXXX */ | ||
363 | int type; /* RT_XXXX */ | ||
364 | }; | ||
365 | |||
366 | struct event_t { | 360 | struct event_t { |
367 | int type; | 361 | int type; |
368 | void *ptr, *arg; | 362 | void *ptr, *arg; |