Skip to content

Commit 9a74a2b

Browse files
Colin Ian KingTrond Myklebust
authored andcommitted
NFS: remove redundant initialization of variable result
The variable result is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Trond Myklebust <[email protected]>
1 parent dbc4fec commit 9a74a2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfs/direct.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ static ssize_t nfs_direct_write_schedule_iovec(struct nfs_direct_req *dreq,
901901
*/
902902
ssize_t nfs_file_direct_write(struct kiocb *iocb, struct iov_iter *iter)
903903
{
904-
ssize_t result = -EINVAL, requested;
904+
ssize_t result, requested;
905905
size_t count;
906906
struct file *file = iocb->ki_filp;
907907
struct address_space *mapping = file->f_mapping;

0 commit comments

Comments
 (0)