android_kernel_oneplus_msm8998/tools/hv
Vitaly Kuznetsov 6442370b56 Tools: hv: kvp: eliminate 'may be used uninitialized' warning
[ Upstream commit 89eb4d8d25722a0a0194cf7fa47ba602e32a6da7 ]

When building hv_kvp_daemon GCC-8.3 complains:

hv_kvp_daemon.c: In function ‘kvp_get_ip_info.constprop’:
hv_kvp_daemon.c:812:30: warning: ‘ip_buffer’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  struct hv_kvp_ipaddr_value *ip_buffer;

this seems to be a false positive: we only use ip_buffer when
op == KVP_OP_GET_IP_INFO and it is only unset when op == KVP_OP_ENUMERATE.

Silence the warning by initializing ip_buffer to NULL.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-09-10 10:29:48 +01:00
..
hv_fcopy_daemon.c tools: hv: report ENOSPC errors in hv_fcopy_daemon 2016-09-15 08:27:40 +02:00
hv_get_dhcp_info.sh Tools: hv: Add an example script to retrieve dhcp state 2012-09-10 16:42:32 -07:00
hv_get_dns_info.sh Tools: hv: Add an example script to retrieve DNS entries 2012-09-04 15:59:27 -07:00
hv_kvp_daemon.c Tools: hv: kvp: eliminate 'may be used uninitialized' warning 2019-09-10 10:29:48 +01:00
hv_set_ifconfig.sh tools: hv: Fix how ifcfg-* file is created 2013-01-17 11:47:21 -08:00
hv_vss_daemon.c tools: hv: fix KVP and VSS daemons exit code 2019-09-06 10:18:14 +02:00
lsvmbus tools: hv: add a python script lsvmbus to list VMBus devices 2015-08-05 11:44:29 -07:00
Makefile tools/hv: Use include/uapi with __EXPORTED_HEADERS__ 2016-04-12 09:08:53 -07:00