Re: [PATCH] tty: Flags should be accessed via the foo_bitinterfaces

From: David Miller
Date: Thu Dec 04 2008 - 18:04:55 EST


From: "Will Newton" <will.newton@xxxxxxxxx>
Date: Thu, 4 Dec 2008 15:50:29 +0000

> On Thu, Dec 4, 2008 at 3:41 PM, Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> wrote:
> > @@ -515,10 +515,9 @@ sl_close(struct net_device *dev)
> > struct slip *sl = netdev_priv(dev);
> >
> > spin_lock_bh(&sl->lock);
> > - if (sl->tty) {
> > + if (sl->tty)
> > + clear_bit(TTY_DO_WRITE_WAKEUP, &sl->tty->flags);
> > /* TTY discipline is running. */
> > - sl->tty->flags &= ~(1 << TTY_DO_WRITE_WAKEUP);
> > - }
>
> The indentation of the comment looks like it might be wrong here.

Indeed. In fact it's now transposed with the operation it describes,
and thus the braces should probably be preserved here as well.

Alan could you please fix this up?

Thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/