From 2944ebee9a96c9d2ddb9c9cb99df6105f2de62ff Mon Sep 17 00:00:00 2001 From: Al Viro Date: Fri, 12 Sep 2025 13:51:28 -0400 Subject: [PATCH] slightly simplify nfs_atomic_open() Reviewed-by: NeilBrown Signed-off-by: Al Viro --- fs/nfs/dir.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index c8dd1d0b8d850..5f7d9be6f0220 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -2198,8 +2198,6 @@ no_open: else dput(dentry); } - if (IS_ERR(res)) - return PTR_ERR(res); return finish_no_open(file, res); } EXPORT_SYMBOL_GPL(nfs_atomic_open); -- 2.47.3