From: Trond Myklebust Date: Thu, 13 Jun 2024 05:00:45 +0000 (-0400) Subject: NFSv4/pnfs: Remove redundant list check X-Git-Tag: v6.11-rc1~121^2~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b8ec59cbba383cced18bafb316ed426ec68fbe6b;p=thirdparty%2Fkernel%2Flinux.git NFSv4/pnfs: Remove redundant list check pnfs_layout_free_bulk_destroy_list() already checks for whether the list is empty or not. Signed-off-by: Trond Myklebust Reviewed-by: Jeff Layton Signed-off-by: Anna Schumaker --- diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index b5834728f31b3..bbbb692b2a47e 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c @@ -923,8 +923,6 @@ restart: 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); } @@ -947,8 +945,6 @@ restart: 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); }