提交 a9f76cf8 编写于 作者: C Colin Ian King 提交者: Steve French

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: NColin Ian King <colin.king@canonical.com>
Signed-off-by: NSteve French <stfrench@microsoft.com>
上级 69738cfd
...@@ -554,7 +554,7 @@ static void ...@@ -554,7 +554,7 @@ static void
assemble_neg_contexts(struct smb2_negotiate_req *req, assemble_neg_contexts(struct smb2_negotiate_req *req,
struct TCP_Server_Info *server, unsigned int *total_len) struct TCP_Server_Info *server, unsigned int *total_len)
{ {
char *pneg_ctxt = (char *)req; char *pneg_ctxt;
unsigned int ctxt_len; unsigned int ctxt_len;
if (*total_len > 200) { if (*total_len > 200) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册