提交 ab22e2cb 编写于 作者: C Colin Ian King 提交者: Trond Myklebust

SUNRPC: remove redundant pointer plainhdr

[You don't often get email from colin.i.king@gmail.com. Learn why this is important at http://aka.ms/LearnAboutSenderIdentification.]

Pointer plainhdr is being assigned a value that is never read, the
pointer is redundant and can be removed.
Signed-off-by: NColin Ian King <colin.i.king@gmail.com>
Signed-off-by: NTrond Myklebust <trond.myklebust@hammerspace.com>
上级 b7f114ed
...@@ -409,7 +409,7 @@ static u32 ...@@ -409,7 +409,7 @@ static u32
gss_wrap_kerberos_v2(struct krb5_ctx *kctx, u32 offset, gss_wrap_kerberos_v2(struct krb5_ctx *kctx, u32 offset,
struct xdr_buf *buf, struct page **pages) struct xdr_buf *buf, struct page **pages)
{ {
u8 *ptr, *plainhdr; u8 *ptr;
time64_t now; time64_t now;
u8 flags = 0x00; u8 flags = 0x00;
__be16 *be16ptr; __be16 *be16ptr;
...@@ -426,7 +426,7 @@ gss_wrap_kerberos_v2(struct krb5_ctx *kctx, u32 offset, ...@@ -426,7 +426,7 @@ gss_wrap_kerberos_v2(struct krb5_ctx *kctx, u32 offset,
return GSS_S_FAILURE; return GSS_S_FAILURE;
/* construct gss token header */ /* construct gss token header */
ptr = plainhdr = buf->head[0].iov_base + offset; ptr = buf->head[0].iov_base + offset;
*ptr++ = (unsigned char) ((KG2_TOK_WRAP>>8) & 0xff); *ptr++ = (unsigned char) ((KG2_TOK_WRAP>>8) & 0xff);
*ptr++ = (unsigned char) (KG2_TOK_WRAP & 0xff); *ptr++ = (unsigned char) (KG2_TOK_WRAP & 0xff);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册