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);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to