diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-07-24 12:44:41 +0200 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2020-07-28 17:04:06 +0200 |
commit | 9a74a2b87f4ca6c987039b3fb96d32093584afc2 (patch) | |
tree | 3c047bf0bf2c09ede6c375f16850fd7cfeb2a7d0 /fs/nfs/direct.c | |
parent | NFSv4.0 allow nconnect for v4.0 (diff) | |
download | linux-9a74a2b87f4ca6c987039b3fb96d32093584afc2.tar.xz linux-9a74a2b87f4ca6c987039b3fb96d32093584afc2.zip |
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 <colin.king@canonical.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/direct.c')
-rw-r--r-- | fs/nfs/direct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/direct.c b/fs/nfs/direct.c index 3d113cf8908a..99b110431923 100644 --- a/fs/nfs/direct.c +++ b/fs/nfs/direct.c @@ -901,7 +901,7 @@ static ssize_t nfs_direct_write_schedule_iovec(struct nfs_direct_req *dreq, */ ssize_t nfs_file_direct_write(struct kiocb *iocb, struct iov_iter *iter) { - ssize_t result = -EINVAL, requested; + ssize_t result, requested; size_t count; struct file *file = iocb->ki_filp; struct address_space *mapping = file->f_mapping; |