]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sunrpc: clean up sparse endianness warnings in gss_krb5_wrap.c
authorJeff Layton <jlayton@primarydata.com>
Wed, 16 Jul 2014 10:52:21 +0000 (06:52 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 3 Aug 2014 21:05:24 +0000 (17:05 -0400)
commitb36e9c44af00285ea33e78ce8ac91da3d8ac74da
tree0196471ad7aef9b39225c727c1d6b33e1dde37f0
parent6ac0fbbfc141f758e2f331d1fee95bc105f87914
sunrpc: clean up sparse endianness warnings in gss_krb5_wrap.c

Fix the endianness handling in gss_wrap_kerberos_v1 and drop the memset
call there in favor of setting the filler bytes directly.

In gss_wrap_kerberos_v2, get rid of the "ec" variable which is always
zero, and drop the endianness conversion of 0. Sparse handles 0 as a
special case, so it's not necessary.

Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
net/sunrpc/auth_gss/gss_krb5_wrap.c