]> Pileus Git - ~andy/linux/blobdiff - fs/dlm/lock.c
Merge branch 'vhost-net-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mst...
[~andy/linux] / fs / dlm / lock.c
index 17903b491298521839ebfe9c3d6100d225fd6e64..031dbe3a15ca302a38b5ddcb16d32fbeca9d6d00 100644 (file)
@@ -733,10 +733,7 @@ static void lkb_add_ordered(struct list_head *new, struct list_head *head,
                if (lkb->lkb_rqmode < mode)
                        break;
 
-       if (!lkb)
-               list_add_tail(new, head);
-       else
-               __list_add(new, lkb->lkb_statequeue.prev, &lkb->lkb_statequeue);
+       __list_add(new, lkb->lkb_statequeue.prev, &lkb->lkb_statequeue);
 }
 
 /* add/remove lkb to rsb's grant/convert/wait queue */