From 1e851378414a6bf953a931df74ca2c7bc52dddd1 Mon Sep 17 00:00:00 2001 From: Sepherosa Ziehau Date: Fri, 14 Apr 2017 05:29:27 +0000 Subject: [PATCH] hyperv/kvp: Remove always false condition. Reported by: PVS MFC after: 3 days Sponsored by: Microsoft --- sys/dev/hyperv/utilities/hv_kvp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/hyperv/utilities/hv_kvp.c b/sys/dev/hyperv/utilities/hv_kvp.c index d8134e8a027..e70c4c43e5e 100644 --- a/sys/dev/hyperv/utilities/hv_kvp.c +++ b/sys/dev/hyperv/utilities/hv_kvp.c @@ -516,7 +516,7 @@ hv_kvp_convert_usermsg_to_hostmsg(struct hv_kvp_msg *umsg, struct hv_kvp_msg *hm /* 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);