Re: [PATCH 1/2] Use kfifo to buffer USB generic serial writes

From: David VomLehn
Date: Fri Aug 14 2009 - 17:45:14 EST


On Fri, Aug 14, 2009 at 10:20:39PM +0100, Alan Cox wrote:
> > + spin_lock_irqsave(&port->write_fifo_lock, flags);
> > + chars = __kfifo_len(port->write_fifo);
> > + spin_unlock_irqrestore(&port->write_fifo_lock, flags);
>
> Any reason for not using kfifo_len() ?

Nope. At one time there was a bit more code protected here and when I took it
out, I missed the opportunity to squash it down. I'll incorporate this with
any other changes that come in.

> Alan
--
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/