]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: clean up a needless assignment in nfs_file_write()
authorLukas Bulwahn <lukas.bulwahn@gmail.com>
Wed, 10 Aug 2022 11:40:01 +0000 (13:40 +0200)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 3 Oct 2022 15:26:36 +0000 (11:26 -0400)
commite45747977e6ea4bb9a4787b48b17ff8a040024ac
tree61c1c5d30176e496d6487aef81df02f79fbdd95d
parent93155fcbfb2d58795a0e290a24b0f5bbd544393d
NFS: clean up a needless assignment in nfs_file_write()

Commit 4c066d9797bf ("NFS: remove redundant code in nfs_file_write()")
identifies that filemap_fdatawait_range() will always return 0 and removes
a dead error-handling case in nfs_file_write(). With this change however,
assigning the return of filemap_fdatawait_range() to the result variable is
a dead store.

Remove this needless assignment.

No functional change. No change in object code.

Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/file.c