diff options
Diffstat (limited to 'drivers/isdn/act2000/capi.c')
-rw-r--r-- | drivers/isdn/act2000/capi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/isdn/act2000/capi.c b/drivers/isdn/act2000/capi.c index 946c38cf6f8a..1f0a94906465 100644 --- a/drivers/isdn/act2000/capi.c +++ b/drivers/isdn/act2000/capi.c | |||
@@ -78,7 +78,6 @@ static actcapi_msgdsc valid_msg[] = { | |||
78 | #endif | 78 | #endif |
79 | {{ 0x00, 0x00}, NULL}, | 79 | {{ 0x00, 0x00}, NULL}, |
80 | }; | 80 | }; |
81 | #define num_valid_msg (sizeof(valid_msg)/sizeof(actcapi_msgdsc)) | ||
82 | #define num_valid_imsg 27 /* MANUFACTURER_IND */ | 81 | #define num_valid_imsg 27 /* MANUFACTURER_IND */ |
83 | 82 | ||
84 | /* | 83 | /* |
@@ -1025,7 +1024,7 @@ actcapi_debug_msg(struct sk_buff *skb, int direction) | |||
1025 | #ifdef DEBUG_DUMP_SKB | 1024 | #ifdef DEBUG_DUMP_SKB |
1026 | dump_skb(skb); | 1025 | dump_skb(skb); |
1027 | #endif | 1026 | #endif |
1028 | for (i = 0; i < num_valid_msg; i++) | 1027 | for (i = 0; i < ARRAY_SIZE(valid_msg); i++) |
1029 | if ((msg->hdr.cmd.cmd == valid_msg[i].cmd.cmd) && | 1028 | if ((msg->hdr.cmd.cmd == valid_msg[i].cmd.cmd) && |
1030 | (msg->hdr.cmd.subcmd == valid_msg[i].cmd.subcmd)) { | 1029 | (msg->hdr.cmd.subcmd == valid_msg[i].cmd.subcmd)) { |
1031 | descr = valid_msg[i].description; | 1030 | descr = valid_msg[i].description; |