From 47303268e1da2acb27651d175eeff97363c12e4a Mon Sep 17 00:00:00 2001 From: Oleg Dubinskiy Date: Thu, 1 Aug 2019 23:37:35 +0300 Subject: [PATCH] [USBAUDIO] Fix compilation issues --- drivers/usb/usbaudio/filter.c | 2 -- drivers/usb/usbaudio/pin.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/usbaudio/filter.c b/drivers/usb/usbaudio/filter.c index 040dbcb0801..69e61e77af7 100644 --- a/drivers/usb/usbaudio/filter.c +++ b/drivers/usb/usbaudio/filter.c @@ -326,7 +326,6 @@ CountTopologyComponents( PUSB_AUDIO_CONTROL_INPUT_TERMINAL_DESCRIPTOR InputTerminalDescriptor; PUSB_AUDIO_CONTROL_FEATURE_UNIT_DESCRIPTOR FeatureUnitDescriptor; PUSB_AUDIO_CONTROL_MIXER_UNIT_DESCRIPTOR MixerUnitDescriptor; - PUSB_AUDIO_CONTROL_SELECTOR_UNIT_DESCRIPTOR SelectorUnitDescriptor; ULONG NodeCount = 0, Length, Index; ULONG DescriptorCount = 0; UCHAR Value; @@ -387,7 +386,6 @@ CountTopologyComponents( } else if (InputTerminalDescriptor->bDescriptorSubtype == 0x05 /* SELECTOR_UNIT */) { - SelectorUnitDescriptor = (PUSB_AUDIO_CONTROL_SELECTOR_UNIT_DESCRIPTOR)InputTerminalDescriptor; DescriptorCount++; NodeCount++; } diff --git a/drivers/usb/usbaudio/pin.c b/drivers/usb/usbaudio/pin.c index a9a7814cf77..350b61375bc 100644 --- a/drivers/usb/usbaudio/pin.c +++ b/drivers/usb/usbaudio/pin.c @@ -697,7 +697,7 @@ InitStreamPin( ULONG GetDataRangeIndexForFormat( IN PKSDATARANGE ConnectionFormat, - IN PKSDATARANGE * DataRanges, + IN const PKSDATARANGE * DataRanges, IN ULONG DataRangesCount) { ULONG Index;