aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-12-02 18:59:42 +0000
committerSteve French <stfrench@microsoft.com>2019-12-02 16:55:08 -0600
commita9f76cf82719aea0f41bfcae57e17ffec39743d0 (patch)
treeb78fc82654c98fbdb8ec2d025ddca993636cb973 /fs/cifs
parentfs: cifs: Fix atime update check vs mtime (diff)
downloadlinux-dev-a9f76cf82719aea0f41bfcae57e17ffec39743d0.tar.xz
linux-dev-a9f76cf82719aea0f41bfcae57e17ffec39743d0.zip
cifs: remove redundant assignment to pointer pneg_ctxt
The pointer pneg_ctxt is being initialized with a value that is never read and it is being updated later with a new value. The assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/smb2pdu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c
index ed77f94dbf1d..be0de8a63e57 100644
--- a/fs/cifs/smb2pdu.c
+++ b/fs/cifs/smb2pdu.c
@@ -554,7 +554,7 @@ static void
assemble_neg_contexts(struct smb2_negotiate_req *req,
struct TCP_Server_Info *server, unsigned int *total_len)
{
- char *pneg_ctxt = (char *)req;
+ char *pneg_ctxt;
unsigned int ctxt_len;
if (*total_len > 200) {