]> git.baikalelectronics.ru Git - kernel.git/commit
af_key: Fix af_key.c compiler warning
authorBrian Haley <brian.haley@hp.com>
Fri, 25 Apr 2008 03:38:31 +0000 (20:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Apr 2008 03:38:31 +0000 (20:38 -0700)
commit05ec1f880b1a2ae9fcdcd71aae82c3746e905169
treea9f03b52cce1501c32a8d24d657d3d5bc1888fae
parent303353de7152112523ac5f64adc556566f6316cd
af_key: Fix af_key.c compiler warning

net/key/af_key.c: In function ‘pfkey_spddelete’:
net/key/af_key.c:2359: warning: ‘pol_ctx’ may be used uninitialized in
this function

When CONFIG_SECURITY_NETWORK_XFRM isn't set,
security_xfrm_policy_alloc() is an inline that doesn't set pol_ctx, so
this seemed like the easiest fix short of using *uninitialized_var(pol_ctx).

Signed-off-by: Brian Haley <brian.haley@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/key/af_key.c