ipc: remove unnecessary tests

Last test would always evaluate as true, refactor to fold equal and
less than case as one

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
This commit is contained in:
Pierre-Louis Bossart 2017-09-25 14:52:18 -05:00 committed by Liam Girdwood
parent 090d4f4c8d
commit 0ffc585dff
1 changed files with 1 additions and 4 deletions

View File

@ -132,12 +132,9 @@ void ipc_platform_do_cmd(struct ipc *ipc)
err = ipc_cmd();
if (err > 0) {
goto done; /* reply created and copied by cmd() */
} else if (err < 0) {
} else {
/* send std error reply */
reply.error = err;
} else if (err == 0) {
/* send std reply */
reply.error = 0;
}
/* send std error/ok reply */