]> err.no Git - linux-2.6/blobdiff - drivers/infiniband/hw/ipath/ipath_ruc.c
IB/ipath: replace uses of LIST_POISON
[linux-2.6] / drivers / infiniband / hw / ipath / ipath_ruc.c
index eb81424b3c5bb9bcb112e392d10c58a78f2530a2..d38f4f3cfd1dd291dd33e17d3780fc9b7ed1d17e 100644 (file)
@@ -435,7 +435,7 @@ void ipath_no_bufs_available(struct ipath_qp *qp, struct ipath_ibdev *dev)
        unsigned long flags;
 
        spin_lock_irqsave(&dev->pending_lock, flags);
-       if (qp->piowait.next == LIST_POISON1)
+       if (list_empty(&qp->piowait))
                list_add_tail(&qp->piowait, &dev->piowait);
        spin_unlock_irqrestore(&dev->pending_lock, flags);
        /*