Commit 1f80c0cc authored by Michael Opdenacker's avatar Michael Opdenacker Committed by Steve French

cif: fix dead code

This issue was found by Coverity (CID 1202536)

This proposes a fix for a statement that creates dead code.
The "rc < 0" statement is within code that is run
with "rc > 0".

It seems like "err < 0" was meant to be used here.
This way, the error code is returned by the function.
Signed-off-by: default avatarMichael Opdenacker <michael.opdenacker@free-electrons.com>
Acked-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarSteve French <smfrench@gmail.com>
parent bae9f746
...@@ -2599,7 +2599,7 @@ cifs_writev(struct kiocb *iocb, const struct iovec *iov, ...@@ -2599,7 +2599,7 @@ cifs_writev(struct kiocb *iocb, const struct iovec *iov,
ssize_t err; ssize_t err;
err = generic_write_sync(file, iocb->ki_pos - rc, rc); err = generic_write_sync(file, iocb->ki_pos - rc, rc);
if (rc < 0) if (err < 0)
rc = err; rc = err;
} }
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment