Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>

authored by

Colin Ian King and committed by
Trond Myklebust
ab22e2cb b7f114ed

+2 -2
+2 -2
net/sunrpc/auth_gss/gss_krb5_wrap.c
··· 409 409 gss_wrap_kerberos_v2(struct krb5_ctx *kctx, u32 offset, 410 410 struct xdr_buf *buf, struct page **pages) 411 411 { 412 - u8 *ptr, *plainhdr; 412 + u8 *ptr; 413 413 time64_t now; 414 414 u8 flags = 0x00; 415 415 __be16 *be16ptr; ··· 426 426 return GSS_S_FAILURE; 427 427 428 428 /* construct gss token header */ 429 - ptr = plainhdr = buf->head[0].iov_base + offset; 429 + ptr = buf->head[0].iov_base + offset; 430 430 *ptr++ = (unsigned char) ((KG2_TOK_WRAP>>8) & 0xff); 431 431 *ptr++ = (unsigned char) (KG2_TOK_WRAP & 0xff); 432 432