Skip to content

Commit a9f76cf

Browse files
Colin Ian Kingsmfrench
authored andcommitted
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 <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 69738cf commit a9f76cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/cifs/smb2pdu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ static void
554554
assemble_neg_contexts(struct smb2_negotiate_req *req,
555555
struct TCP_Server_Info *server, unsigned int *total_len)
556556
{
557-
char *pneg_ctxt = (char *)req;
557+
char *pneg_ctxt;
558558
unsigned int ctxt_len;
559559

560560
if (*total_len > 200) {

0 commit comments

Comments
 (0)