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;