jfs: Simplify code
[cascardo/linux.git] / fs / jfs / jfs_txnmgr.c
index 2e58978..4d97352 100644 (file)
@@ -2893,8 +2893,7 @@ restart:
         * on anon_list2.  Let's check.
         */
        if (!list_empty(&TxAnchor.anon_list2)) {
-               list_splice(&TxAnchor.anon_list2, &TxAnchor.anon_list);
-               INIT_LIST_HEAD(&TxAnchor.anon_list2);
+               list_splice_init(&TxAnchor.anon_list2, &TxAnchor.anon_list);
                goto restart;
        }
        TXN_UNLOCK();