diff options
author | Jan Kiszka <jan.kiszka@web.de> | 2010-02-08 05:12:43 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-16 19:01:35 -0500 |
commit | c6af0437941c92179eeb51579f19423eacc5516c (patch) | |
tree | 0d67339dc151979cbda683d944ba102d83b18b4f /drivers/isdn | |
parent | eef0ced02840cdbc9045b24e73378401aae04d4c (diff) |
CAPI: Drop special controller lookup from capi20_put_message
This strange special rule to fall back to controller 1 cannot be derived
from the CAPI specs and looks a lot like it was once dedicated to some
out-of-tree driver, probably AVM's broken fcdsl2 (FRITZ!Card DSL v2.0).
I found no in-tree user that needs this check, and I'm now taking care
of the fcdsl2. So drop these bits from our stack.
Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn')
-rw-r--r-- | drivers/isdn/capi/kcapi.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/isdn/capi/kcapi.c b/drivers/isdn/capi/kcapi.c index 0b4c8a7396bc..ce9b05b9e93a 100644 --- a/drivers/isdn/capi/kcapi.c +++ b/drivers/isdn/capi/kcapi.c | |||
@@ -777,11 +777,8 @@ u16 capi20_put_message(struct capi20_appl *ap, struct sk_buff *skb) | |||
777 | * synchronizes this service with capi20_release. | 777 | * synchronizes this service with capi20_release. |
778 | */ | 778 | */ |
779 | ctr = get_capi_ctr_by_nr(CAPIMSG_CONTROLLER(skb->data)); | 779 | ctr = get_capi_ctr_by_nr(CAPIMSG_CONTROLLER(skb->data)); |
780 | if (!ctr || ctr->state != CAPI_CTR_RUNNING) { | 780 | if (!ctr || ctr->state != CAPI_CTR_RUNNING) |
781 | ctr = get_capi_ctr_by_nr(1); /* XXX why? */ | 781 | return CAPI_REGNOTINSTALLED; |
782 | if (!ctr || ctr->state != CAPI_CTR_RUNNING) | ||
783 | return CAPI_REGNOTINSTALLED; | ||
784 | } | ||
785 | if (ctr->blocked) | 782 | if (ctr->blocked) |
786 | return CAPI_SENDQUEUEFULL; | 783 | return CAPI_SENDQUEUEFULL; |
787 | 784 | ||