From: Oleg Drokin Date: Sat, 26 Apr 2014 20:40:06 +0000 (-0400) Subject: LU-4423 gss: fix checkpatch warning X-Git-Tag: 2.5.59~58 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=e9cfbba2ad00b5e818f934e5d6efbf02e3ab6a47 LU-4423 gss: fix checkpatch warning sizeof *null_context_new is a bad coding style. Change-Id: Ie71803940347bd4b92d502a547d046a065bb4387 Signed-off-by: Oleg Drokin Reviewed-on: http://review.whamcloud.com/10118 Tested-by: Jenkins Reviewed-by: James Simmons Reviewed-by: Bob Glossman Reviewed-by: John L. Hammond Tested-by: Maloo --- diff --git a/lustre/ptlrpc/gss/gss_null_mech.c b/lustre/ptlrpc/gss/gss_null_mech.c index 5565773..cdb120d 100644 --- a/lustre/ptlrpc/gss/gss_null_mech.c +++ b/lustre/ptlrpc/gss/gss_null_mech.c @@ -77,7 +77,7 @@ __u32 gss_copy_reverse_context_null(struct gss_ctx *gss_context_old, return GSS_S_FAILURE; null_context_old = gss_context_old->internal_ctx_id; - memcpy(null_context_new, null_context_old, sizeof *null_context_new); + memcpy(null_context_new, null_context_old, sizeof(*null_context_new)); gss_context_new->internal_ctx_id = null_context_new; CDEBUG(D_SEC, "succesfully copied reverse null context\n"); diff --git a/lustre/ptlrpc/gss/gss_sk_mech.c b/lustre/ptlrpc/gss/gss_sk_mech.c index ae9a11f..590a839 100644 --- a/lustre/ptlrpc/gss/gss_sk_mech.c +++ b/lustre/ptlrpc/gss/gss_sk_mech.c @@ -77,7 +77,7 @@ __u32 gss_copy_reverse_context_sk(struct gss_ctx *gss_context_old, return GSS_S_FAILURE; sk_context_old = gss_context_old->internal_ctx_id; - memcpy(sk_context_new, sk_context_old, sizeof *sk_context_new); + memcpy(sk_context_new, sk_context_old, sizeof(*sk_context_new)); gss_context_new->internal_ctx_id = sk_context_new; CDEBUG(D_SEC, "succesfully copied reverse sk context\n");