diff options
author | sephe <sephe@FreeBSD.org> | 2016-03-01 05:15:26 +0000 |
---|---|---|
committer | sephe <sephe@FreeBSD.org> | 2016-03-01 05:15:26 +0000 |
commit | b0c32dfce5d841baeb471e44c38123707f37e96e (patch) | |
tree | bd203204f172e26b3a2a683ed4bd13bf1ac2b8a6 | |
parent | 65d6c54a61e6a072bf74f79f14efa0bc0954ab5e (diff) | |
download | FreeBSD-src-b0c32dfce5d841baeb471e44c38123707f37e96e.zip FreeBSD-src-b0c32dfce5d841baeb471e44c38123707f37e96e.tar.gz |
hyperv/channel: Nuke useless stack variable
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D5499
-rw-r--r-- | sys/dev/hyperv/vmbus/hv_channel.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/dev/hyperv/vmbus/hv_channel.c b/sys/dev/hyperv/vmbus/hv_channel.c index 71209bd..28b8c63 100644 --- a/sys/dev/hyperv/vmbus/hv_channel.c +++ b/sys/dev/hyperv/vmbus/hv_channel.c @@ -928,7 +928,6 @@ hv_vmbus_channel_recv_packet_raw( { int ret; uint32_t packetLen; - uint32_t userLen; hv_vm_packet_descriptor desc; *buffer_actual_len = 0; @@ -942,8 +941,6 @@ hv_vmbus_channel_recv_packet_raw( return (0); packetLen = desc.length8 << 3; - userLen = packetLen - (desc.data_offset8 << 3); - *buffer_actual_len = packetLen; if (packetLen > buffer_len) |