Skip to content
Commit 9fd40c5a authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by J. Bruce Fields
Browse files

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: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 9f415eb2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment