svn commit: r304724 - head/sys/dev/hyperv/netvsc
Sepherosa Ziehau
sephe at FreeBSD.org
Wed Aug 24 03:28:59 UTC 2016
Author: sephe
Date: Wed Aug 24 03:28:58 2016
New Revision: 304724
URL: https://svnweb.freebsd.org/changeset/base/304724
Log:
hyperv/hn: Remove the redundant rid setting for RNDIS HALT.
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7595
Modified:
head/sys/dev/hyperv/netvsc/hv_rndis_filter.c
Modified: head/sys/dev/hyperv/netvsc/hv_rndis_filter.c
==============================================================================
--- head/sys/dev/hyperv/netvsc/hv_rndis_filter.c Wed Aug 24 03:16:25 2016 (r304723)
+++ head/sys/dev/hyperv/netvsc/hv_rndis_filter.c Wed Aug 24 03:28:58 2016 (r304724)
@@ -928,7 +928,6 @@ static int
hv_rf_halt_device(rndis_device *device)
{
rndis_request *request;
- rndis_halt_request *halt;
int i, ret;
/* Attempt to do a rndis device halt */
@@ -941,12 +940,6 @@ hv_rf_halt_device(rndis_device *device)
/* initialize "poor man's semaphore" */
request->halt_complete_flag = 0;
- /* Set up the rndis set */
- halt = &request->request_msg.msg.halt_request;
- halt->request_id = atomic_fetchadd_int(&device->new_request_id, 1);
- /* Increment to get the new value (call above returns old value) */
- halt->request_id += 1;
-
ret = hv_rf_send_request(device, request, REMOTE_NDIS_HALT_MSG);
if (ret != 0) {
return (-1);
More information about the svn-src-head
mailing list