}
 }
 
-static int handle_minor_send(struct capiminor *mp)
+static void handle_minor_send(struct capiminor *mp)
 {
        struct tty_struct *tty;
        struct sk_buff *skb;
        u16 len;
-       int count = 0;
        u16 errcode;
        u16 datahandle;
 
        tty = tty_port_tty_get(&mp->port);
        if (!tty)
-               return 0;
+               return;
 
        if (mp->ttyoutstop) {
 #if defined(_DEBUG_DATAFLOW) || defined(_DEBUG_TTYFUNCS)
                printk(KERN_DEBUG "capi: send: tty stopped\n");
 #endif
                tty_kref_put(tty);
-               return 0;
+               return;
        }
 
        while (1) {
                        mp->outbytes += len;
                        spin_unlock_bh(&mp->outlock);
 
-                       tty_kref_put(tty);
-                       return count;
+                       break;
                }
                errcode = capi20_put_message(mp->ap, skb);
                if (errcode == CAPI_NOERROR) {
-                       count++;
 #ifdef _DEBUG_DATAFLOW
                        printk(KERN_DEBUG "capi: DATA_B3_REQ %u len=%u\n",
                                                        datahandle, len);
                kfree_skb(skb);
        }
        tty_kref_put(tty);
-       return count;
 }
 
 #endif /* CONFIG_ISDN_CAPI_MIDDLEWARE */
                        tty_wakeup(tty);
                        tty_kref_put(tty);
                }
-               (void)handle_minor_send(mp);
+               handle_minor_send(mp);
 
        } else {
                /* ups, let capi application handle it :-) */
        mp->outbytes += skb->len;
        spin_unlock_bh(&mp->outlock);
 
-       (void)handle_minor_send(mp);
+       handle_minor_send(mp);
 
        return count;
 }
        spin_unlock_bh(&mp->outlock);
 
        if (invoke_send)
-               (void)handle_minor_send(mp);
+               handle_minor_send(mp);
 
        return ret;
 }
                mp->outbytes += skb->len;
                spin_unlock_bh(&mp->outlock);
 
-               (void)handle_minor_send(mp);
+               handle_minor_send(mp);
        } else
                spin_unlock_bh(&mp->outlock);
 
        printk(KERN_DEBUG "capinc_tty_start\n");
 #endif
        mp->ttyoutstop = 0;
-       (void)handle_minor_send(mp);
+       handle_minor_send(mp);
 }
 
 static void capinc_tty_hangup(struct tty_struct *tty)