X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Firda%2Fircomm%2Fircomm_tty.c;h=f0c93caf601cf8043b3b5ffd0a52f6a06f394acc;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=f348c0caf7a0a995d40c5946033b47d6c8b7c769;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/net/irda/ircomm/ircomm_tty.c b/net/irda/ircomm/ircomm_tty.c index f348c0caf..f0c93caf6 100644 --- a/net/irda/ircomm/ircomm_tty.c +++ b/net/irda/ircomm/ircomm_tty.c @@ -561,7 +561,7 @@ static void ircomm_tty_close(struct tty_struct *tty, struct file *filp) tty->ldisc.flush_buffer(tty); tty->closing = 0; - self->tty = 0; + self->tty = NULL; if (self->blocked_open) { if (self->close_delay) { @@ -1045,7 +1045,7 @@ static void ircomm_tty_hangup(struct tty_struct *tty) /* I guess we need to lock here - Jean II */ spin_lock_irqsave(&self->spinlock, flags); self->flags &= ~ASYNC_NORMAL_ACTIVE; - self->tty = 0; + self->tty = NULL; self->open_count = 0; spin_unlock_irqrestore(&self->spinlock, flags);