mirror of https://github.com/thesofproject/sof.git
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:
parent
090d4f4c8d
commit
0ffc585dff
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue