Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Oct 2016 03:00:56 +0000 (UTC)
From:      Sepherosa Ziehau <sephe@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r307170 - stable/10/sys/dev/hyperv/utilities
Message-ID:  <201610130300.u9D30uEG011855@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sephe
Date: Thu Oct 13 03:00:56 2016
New Revision: 307170
URL: https://svnweb.freebsd.org/changeset/base/307170

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

Modified:
  stable/10/sys/dev/hyperv/utilities/hv_kvp.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/hyperv/utilities/hv_kvp.c
==============================================================================
--- stable/10/sys/dev/hyperv/utilities/hv_kvp.c	Thu Oct 13 02:58:53 2016	(r307169)
+++ stable/10/sys/dev/hyperv/utilities/hv_kvp.c	Thu Oct 13 03:00:56 2016	(r307170)
@@ -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);
 
 			/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610130300.u9D30uEG011855>