On Tue, May 30, 2006 at 01:34:02PM +0200, Andreas Schwab ([EMAIL PROTECTED]) wrote: > There is no point in testing the atomic value if the result is thrown > away.
It was created to put implicit smp barrier, but it is not needed there. Your patch is correct, thank you. > Signed-off-by: Andreas Schwab <[EMAIL PROTECTED]> Signed-off-by: Evgeniy Polyakov <[EMAIL PROTECTED]> > diff --git a/drivers/connector/cn_queue.c b/drivers/connector/cn_queue.c > index 9f2f00d..05f8ce2 100644 > --- a/drivers/connector/cn_queue.c > +++ b/drivers/connector/cn_queue.c > @@ -127,7 +127,7 @@ void cn_queue_del_callback(struct cn_que > > if (found) { > cn_queue_free_callback(cbq); > - atomic_dec_and_test(&dev->refcnt); > + atomic_dec(&dev->refcnt); > } > } > > > Andreas. -- Evgeniy Polyakov - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html