]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - drivers/isdn/gigaset/interface.c
gigaset: prune use of tty_buffer_request_room
[mirror_ubuntu-zesty-kernel.git] / drivers / isdn / gigaset / interface.c
index d2260b0055fc8e5636fda10404f4a4fe4006211b..f0dc6c9cc283634c358a4604bb78141bcb71cf57 100644 (file)
@@ -45,8 +45,6 @@ static int if_lock(struct cardstate *cs, int *arg)
                cs->waiting = 0;
                return -ENOMEM;
        }
-
-       gig_dbg(DEBUG_CMD, "scheduling IF_LOCK");
        gigaset_schedule_event(cs);
 
        wait_event(cs->waitqueue, !cs->waiting);
@@ -81,8 +79,6 @@ static int if_version(struct cardstate *cs, unsigned arg[4])
                        cs->waiting = 0;
                        return -ENOMEM;
                }
-
-               gig_dbg(DEBUG_CMD, "scheduling IF_VER");
                gigaset_schedule_event(cs);
 
                wait_event(cs->waitqueue, !cs->waiting);
@@ -274,7 +270,7 @@ static int if_ioctl(struct tty_struct *tty, struct file *file,
                                        ? -EFAULT : 0;
                        break;
                default:
-                       gig_dbg(DEBUG_ANY, "%s: arg not supported - 0x%04x",
+                       gig_dbg(DEBUG_IF, "%s: arg not supported - 0x%04x",
                                __func__, cmd);
                        retval = -ENOIOCTLCMD;
                }
@@ -455,7 +451,7 @@ static void if_throttle(struct tty_struct *tty)
        else if (!cs->open_count)
                dev_warn(cs->dev, "%s: device not opened\n", __func__);
        else
-               gig_dbg(DEBUG_ANY, "%s: not implemented\n", __func__);
+               gig_dbg(DEBUG_IF, "%s: not implemented\n", __func__);
 
        mutex_unlock(&cs->mutex);
 }
@@ -479,7 +475,7 @@ static void if_unthrottle(struct tty_struct *tty)
        else if (!cs->open_count)
                dev_warn(cs->dev, "%s: device not opened\n", __func__);
        else
-               gig_dbg(DEBUG_ANY, "%s: not implemented\n", __func__);
+               gig_dbg(DEBUG_IF, "%s: not implemented\n", __func__);
 
        mutex_unlock(&cs->mutex);
 }
@@ -630,9 +626,8 @@ void gigaset_if_receive(struct cardstate *cs,
        spin_lock_irqsave(&cs->lock, flags);
        tty = cs->tty;
        if (tty == NULL)
-               gig_dbg(DEBUG_ANY, "receive on closed device");
+               gig_dbg(DEBUG_IF, "receive on closed device");
        else {
-               tty_buffer_request_room(tty, len);
                tty_insert_flip_string(tty, buffer, len);
                tty_flip_buffer_push(tty);
        }