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

Sepherosa Ziehau sephe at FreeBSD.org
Thu Aug 18 06:03:56 UTC 2016


Author: sephe
Date: Thu Aug 18 06:03:55 2016
New Revision: 304331
URL: https://svnweb.freebsd.org/changeset/base/304331

Log:
  hyperv/kvp: Remove unnecessary function parameter.
  
  MFC after:	1 week
  Sponsored by:	Microsoft
  Differential Revision:	https://reviews.freebsd.org/D7550

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	Thu Aug 18 05:52:03 2016	(r304330)
+++ head/sys/dev/hyperv/utilities/hv_kvp.c	Thu Aug 18 06:03:55 2016	(r304331)
@@ -217,10 +217,9 @@ hv_kvp_transaction_init(hv_kvp_sc *sc, u
  * hv_kvp - version neogtiation function
  */
 static void
-hv_kvp_negotiate_version(struct hv_vmbus_icmsg_hdr *icmsghdrp,
-			 struct hv_vmbus_icmsg_negotiate *negop,
-			 uint8_t *buf)
+hv_kvp_negotiate_version(struct hv_vmbus_icmsg_hdr *icmsghdrp, uint8_t *buf)
 {
+	struct hv_vmbus_icmsg_negotiate *negop;
 	int icframe_vercnt;
 	int icmsg_vercnt;
 
@@ -641,7 +640,7 @@ hv_kvp_process_request(void *context, in
 
 		hv_kvp_transaction_init(sc, recvlen, requestid, kvp_buf);
 		if (icmsghdrp->icmsgtype == HV_ICMSGTYPE_NEGOTIATE) {
-			hv_kvp_negotiate_version(icmsghdrp, NULL, kvp_buf);
+			hv_kvp_negotiate_version(icmsghdrp, kvp_buf);
 			hv_kvp_respond_host(sc, ret);
 
 			/*


More information about the svn-src-head mailing list