pnfs_layout_free_bulk_destroy_list() already checks for whether the list
is empty or not.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
        rcu_read_unlock();
        spin_unlock(&clp->cl_lock);
 
-       if (list_empty(&layout_list))
-               return 0;
        return pnfs_layout_free_bulk_destroy_list(&layout_list, is_recall);
 }
 
        rcu_read_unlock();
        spin_unlock(&clp->cl_lock);
 
-       if (list_empty(&layout_list))
-               return 0;
        return pnfs_layout_free_bulk_destroy_list(&layout_list, is_recall);
 }