From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [PATCH] tty: Flags should be accessed via the foo_bit interfaces Date: Thu, 4 Dec 2008 23:08:23 -0800 Message-ID: <20081204230823.bdb78508.akpm@linux-foundation.org> References: <20081204154030.27980.82380.stgit@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: Alan Cox Return-path: Received: from smtp1.linux-foundation.org ([140.211.169.13]:48469 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751795AbYLEHIc (ORCPT ); Fri, 5 Dec 2008 02:08:32 -0500 In-Reply-To: <20081204154030.27980.82380.stgit@localhost.localdomain> Sender: netdev-owner@vger.kernel.org List-ID: On Thu, 04 Dec 2008 15:41:19 +0000 Alan Cox wrote: > --- a/drivers/net/slip.c > +++ b/drivers/net/slip.c > @@ -432,7 +432,7 @@ static void slip_write_wakeup(struct tty_struct *tty) > /* Now serial buffer is almost free & we can start > * transmission of another packet */ > sl->tx_packets++; > - tty->flags &= ~(1 << TTY_DO_WRITE_WAKEUP); > + clear_bit(TTY_DO_WRITE_WAKEUP, &sl->tty->flags); that's different.