svn commit: r316815 - head/sys/dev/hyperv/utilities

Sepherosa Ziehau sephe at FreeBSD.org
Fri Apr 14 05:29:28 UTC 2017


Author: sephe
Date: Fri Apr 14 05:29:27 2017
New Revision: 316815
URL: https://svnweb.freebsd.org/changeset/base/316815

Log:
  hyperv/kvp: Remove always false condition.
  
  Reported by:	PVS
  MFC after:	3 days
  Sponsored by:	Microsoft

Modified:
  head/sys/dev/hyperv/utilities/hv_kvp.c

Modified: head/sys/dev/hyperv/utilities/hv_kvp.c
==============================================================================
--- head/sys/dev/hyperv/utilities/hv_kvp.c	Fri Apr 14 05:25:40 2017	(r316814)
+++ head/sys/dev/hyperv/utilities/hv_kvp.c	Fri Apr 14 05:29:27 2017	(r316815)
@@ -516,7 +516,7 @@ hv_kvp_convert_usermsg_to_hostmsg(struct
 		/* Use values by string */
 		host_exchg_data->value_type = HV_REG_SZ;
 
-		if ((hkey_len < 0) || (hvalue_len < 0))
+		if (hvalue_len < 0)
 			return (EINVAL);
 
 		return (0);


More information about the svn-src-head mailing list