cmMidiOsx.c : Removed some sanity checks in _cmMpMIdiSystemReadProc()

because the variables cheched were not used in the function and were
failing the sanity check.
This commit is contained in:
kevin 2013-10-16 09:00:22 -07:00
parent cb19fb10a2
commit 3dc64bb1c0

View File

@ -481,11 +481,12 @@ void _cmMpMidiSystemNotifyProc( const MIDINotification* notifyMsgPtr, void *refC
void _cmMpMIDISystemReadProc( const MIDIPacketList *pktListPtr, void* readProcRefCon, void* srcConnRefCon )
{
cmMpRoot* rp = (cmMpRoot*)readProcRefCon;
//cmMpRoot* rp = (cmMpRoot*)readProcRefCon;
cmMpPort* pp = (cmMpPort*)srcConnRefCon;
unsigned i;
if( pktListPtr == NULL || rp == NULL || pp == NULL || rp->cbFunc == NULL )
if( pktListPtr == NULL /*|| rp == NULL*/ || pp == NULL /*|| rp->cbFunc == NULL*/ )
return;
const MIDIPacket* packetPtr = &pktListPtr->packet[0];