Commit 842e00ac authored by Colin Ian King's avatar Colin Ian King Committed by Chuck Lever

nfsd: remove redundant assignment to variable len

Variable len is being assigned a value zero and this is never
read, it is being re-assigned later. The assignment is redundant
and can be removed.

Cleans up clang scan-build warning:
fs/nfsd/nfsctl.c:636:2: warning: Value stored to 'len' is never read
Signed-off-by: default avatarColin Ian King <colin.i.king@gmail.com>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent f532c9ff
...@@ -633,7 +633,6 @@ static ssize_t __write_versions(struct file *file, char *buf, size_t size) ...@@ -633,7 +633,6 @@ static ssize_t __write_versions(struct file *file, char *buf, size_t size)
} }
/* Now write current state into reply buffer */ /* Now write current state into reply buffer */
len = 0;
sep = ""; sep = "";
remaining = SIMPLE_TRANSACTION_LIMIT; remaining = SIMPLE_TRANSACTION_LIMIT;
for (num=2 ; num <= 4 ; num++) { for (num=2 ; num <= 4 ; num++) {
......
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