# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.657 -> 1.658 # drivers/usb/class/usb-midi.c 1.4 -> 1.5 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 02/09/12 lopezp@grupocp.es 1.658 # [PATCH] usbmidi patch # # I have changed the name of a local variable "l" to be "j", because with some # fonts should be difficult to see if [1+l+i] means [2+i] or what. # -------------------------------------------- # diff -Nru a/drivers/usb/class/usb-midi.c b/drivers/usb/class/usb-midi.c --- a/drivers/usb/class/usb-midi.c Thu Sep 12 10:25:35 2002 +++ b/drivers/usb/class/usb-midi.c Thu Sep 12 10:25:35 2002 @@ -368,7 +368,7 @@ { struct midi_in_endpoint *ep = (struct midi_in_endpoint *)(urb->context); unsigned char *data = urb->transfer_buffer; - int i, l, wake; + int i, j, wake; unsigned long int flags; if ( !ep->urbSubmitted ) { @@ -379,14 +379,14 @@ wake = 0; spin_lock_irqsave( &ep->lock, flags ); - for(l = 0; l < urb->actual_length; l += 4) { - int cin = (data[l]>>0)&0xf; - int cab = (data[l]>>4)&0xf; + for(j = 0; j < urb->actual_length; j += 4) { + int cin = (data[j]>>0)&0xf; + int cab = (data[j]>>4)&0xf; struct usb_mididev *cable = ep->cables[cab]; if ( cable ) { int len = cin_to_len[cin]; /** length of MIDI data **/ for (i = 0; i < len; i++) { - cable->min.buf[cable->min.bufWrPtr] = data[1+i]; + cable->min.buf[cable->min.bufWrPtr] = data[1+i+j]; cable->min.bufWrPtr = (cable->min.bufWrPtr+1)%MIDI_IN_BUFSIZ; if (cable->min.bufRemains < MIDI_IN_BUFSIZ) cable->min.bufRemains += 1;