simplify switch/case

This commit is contained in:
Alexandre Ratchov 2014-03-10 11:20:45 +01:00
parent 5543797422
commit 4709dcb282
1 changed files with 1 additions and 2 deletions

View File

@ -1012,10 +1012,9 @@ sio_alsa_onmove(struct sio_alsa_hdl *hdl)
case SIO_REC:
delta = hdl->idelta;
break;
case SIO_PLAY | SIO_REC:
default: /* SIO_PLAY | SIO_REC */
delta = hdl->odelta > hdl->idelta ?
hdl->odelta : hdl->idelta;
break;
}
if (delta <= 0)
return;