-/* $OpenBSD: uaudio.c,v 1.129 2018/07/07 13:03:08 landry Exp $ */
+/* $OpenBSD: uaudio.c,v 1.130 2018/07/27 05:48:59 ratchov Exp $ */
/* $NetBSD: uaudio.c,v 1.90 2004/10/29 17:12:53 kent Exp $ */
/*
it->output = tml;
if (it->inputs != NULL) {
for (i = 0; i < it->inputs_size; i++)
- if (it->inputs[i] != NULL)
- free(it->inputs[i], M_TEMP, 0);
+ free(it->inputs[i], M_TEMP, 0);
free(it->inputs, M_TEMP, 0);
}
it->inputs_size = 0;
continue;
pot = iot[i].d.ot;
tml = uaudio_io_terminaltype(UGETW(pot->wTerminalType), iot, i);
- if (tml != NULL)
- free(tml, M_TEMP, 0);
+ free(tml, M_TEMP, 0);
}
#ifdef UAUDIO_DEBUG
if (iot[i].d.desc == NULL)
continue;
if (iot[i].inputs != NULL) {
- for (j = 0; j < iot[i].inputs_size; j++) {
- if (iot[i].inputs[j] != NULL)
- free(iot[i].inputs[j], M_TEMP, 0);
- }
+ for (j = 0; j < iot[i].inputs_size; j++)
+ free(iot[i].inputs[j], M_TEMP, 0);
free(iot[i].inputs, M_TEMP, 0);
}
- if (iot[i].output != NULL)
- free(iot[i].output, M_TEMP, 0);
+ free(iot[i].output, M_TEMP, 0);
iot[i].d.desc = NULL;
}
free(iot, M_TEMP, 256 * sizeof(struct io_terminal));