Skip to content

Commit

Permalink
cifs: remove redundant assignment to pointer pneg_ctxt
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and Steve French committed Dec 2, 2019
1 parent 69738cf commit a9f76cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/cifs/smb2pdu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a9f76cf

Please sign in to comment.