From: Bryan Schumaker Date: Wed, 27 Apr 2011 19:28:44 +0000 (-0400) Subject: NFS: Return meaningful status from decode_secinfo() X-Git-Tag: v2.6.39-rc6~24^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=613e901e1ee0e1096663b649eee8e5d6697919f3;p=pandora-kernel.git NFS: Return meaningful status from decode_secinfo() When compiling, I was getting this warning: fs/nfs/nfs4xdr.c: In function ‘decode_secinfo’: fs/nfs/nfs4xdr.c:4839:6: warning: variable ‘status’ set but not used [-Wunused-but-set-variable] We were unconditionally returning 0 as long as there wasn't an error coming out of xdr_inline_decode(). We probably want to check the error status coming out of decode_op_hdr() and decode_secinfo_gss(), rather than assuming that everything is OK all the time. Signed-off-by: Bryan Schumaker Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed