]> git.baikalelectronics.ru Git - kernel.git/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)
commit8e69af36ca406f11b4ba0591922a84eec06399f3
tree60a6aef3e99075dd1215e349f4115424708bc82f
parent60a1071f8b75b7a75e20f1552180767f8962726f
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