mirror of https://github.com/thesofproject/sof.git
ipc4: setdx: clean handler
Using copies of module_id and instance_id, otherwise they are unnecessary. Removing unnecessary log, it has no useful information. Any value different that 0 will be printed in error. Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com> Signed-off-by: Rafal Redzimski <rafal.f.redzimski@intel.com>
This commit is contained in:
parent
c7246d2212
commit
22563ad029
|
@ -748,10 +748,8 @@ static int ipc4_module_process_dx(union ipc4_message_header *ipc4)
|
|||
module_id = dx.header.r.module_id;
|
||||
instance_id = dx.header.r.instance_id;
|
||||
|
||||
tr_dbg(&ipc_tr, "ipc4_module_process_d0ix %x : %x", module_id, instance_id);
|
||||
|
||||
/* only module 0 can be used to set dx state */
|
||||
if (dx.header.r.module_id || dx.header.r.instance_id) {
|
||||
if (module_id || instance_id) {
|
||||
tr_err(&ipc_tr, "invalid resource id %x : %x", module_id, instance_id);
|
||||
return IPC4_INVALID_RESOURCE_ID;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue