AnsweredAssumed Answered

Dead code?

Question asked by John Strohm on Jan 12, 2015
Latest reply on Feb 12, 2015 by Jed Jiang

In the 5.0 USB stack, in usb_audio.c, in routine USB_Class_Audio_Init(), I find the following:


    for (index = 0; index < p_usb_data_ut->count; index++)


        devicePtr->audio_ut_data.ut[index].unit_id = p_usb_data_ut->put[index].unit_id;

        devicePtr->audio_ut_data.ut[index].type = p_usb_data_ut->put[index].type;



I find no reference whatsoever to "audio_ut_data" anywhere else in the code, making the two assignments and the loop around them an apparent waste of time, energy, electrons, memory, and processor cycles.


What am I missing here?