]> Pileus Git - ~andy/linux/commit
SUNRPC: Refactor gssx_dec_option_array() to kill uninitialized warning
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 6 May 2013 07:21:03 +0000 (09:21 +0200)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 6 May 2013 12:54:06 +0000 (08:54 -0400)
commit9fd40c5a66be0b0a5d65362ec139968ba6d1f412
tree60a6aef3e99075dd1215e349f4115424708bc82f
parent9f415eb25574db4b73a9a712a4438e41dc284922
SUNRPC: Refactor gssx_dec_option_array() to kill uninitialized warning

net/sunrpc/auth_gss/gss_rpc_xdr.c: In function ‘gssx_dec_option_array’:
net/sunrpc/auth_gss/gss_rpc_xdr.c:258: warning: ‘creds’ may be used uninitialized in this function

Return early if count is zero, to make it clearer to the compiler (and the
casual reviewer) that no more processing is done.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/auth_gss/gss_rpc_xdr.c