From: Colin Ian King Date: Fri, 24 Jul 2020 10:44:41 +0000 (+0100) Subject: NFS: remove redundant initialization of variable result X-Git-Tag: v5.9-rc1~13^2~13 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=9a74a2b87f4ca6c987039b3fb96d32093584afc2;p=linux-2.6-block.git 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 Signed-off-by: Trond Myklebust --- 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;