From: K. Y. Srinivasan Date: Tue, 26 Jul 2011 18:03:10 +0000 (-0700) Subject: Staging: hv: util: kvp: Cleanup kvp_get_domain_name() X-Git-Tag: v3.2-rc1~169^2^2~864^2~142 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5be528c2130a1281ba858296924dd619068bb0e3;p=pandora-kernel.git Staging: hv: util: kvp: Cleanup kvp_get_domain_name() Cleanup kvp_get_domain_name(). If getaddrinfo() fails, deal with it properly (this can happen if no IP address has been assigned). Also, don't specify a specific service in the call to getaddrinfo() to make this code as generic as possible. Lastly, move the call to gethostname() after the local variables. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed