unreachable logic the wrong way around in input switch statement. Used cases removed, unused kept.

This commit is contained in:
Ross Owen
2014-03-06 21:17:07 +00:00
parent 71c876f356
commit 0e120103c1

View File

@@ -164,7 +164,7 @@ void handle_audio_request(chanend c_mix_out)
switch(g_curSubSlot_in) switch(g_curSubSlot_in)
{ {
case 2: case 2:
#if (STREAM_FORMAT_INPUT_SUBSLOT_2_USED == 1) #if (STREAM_FORMAT_INPUT_SUBSLOT_2_USED == 0)
__builtin_unreachable(); __builtin_unreachable();
#endif #endif
for(int i = 0; i < g_numUsbChanIn; i++) for(int i = 0; i < g_numUsbChanIn; i++)
@@ -191,7 +191,7 @@ __builtin_unreachable();
case 4: case 4:
{ {
#if (STREAM_FORMAT_INPUT_SUBSLOT_4_USED == 1) #if (STREAM_FORMAT_INPUT_SUBSLOT_4_USED == 0)
__builtin_unreachable(); __builtin_unreachable();
#endif #endif
unsigned ptr = g_aud_to_host_dptr; unsigned ptr = g_aud_to_host_dptr;
@@ -225,7 +225,7 @@ __builtin_unreachable();
} }
case 3: case 3:
#if (STREAM_FORMAT_INPUT_SUBSLOT_3_USED == 1) #if (STREAM_FORMAT_INPUT_SUBSLOT_3_USED == 0)
__builtin_unreachable(); __builtin_unreachable();
#endif #endif
for(int i = 0; i < g_numUsbChanIn; i++) for(int i = 0; i < g_numUsbChanIn; i++)