mirror of https://github.com/thesofproject/sof.git
IPC: (cosmetic) remove a superfluous variable
The ret variable in ipc_comp_new() is never changed from its initialisation value of 0, remove it. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
parent
0e309fdc16
commit
4da849e99b
|
@ -176,7 +176,6 @@ int ipc_comp_new(struct ipc *ipc, struct sof_ipc_comp *comp)
|
||||||
{
|
{
|
||||||
struct comp_dev *cd;
|
struct comp_dev *cd;
|
||||||
struct ipc_comp_dev *icd;
|
struct ipc_comp_dev *icd;
|
||||||
int ret = 0;
|
|
||||||
|
|
||||||
/* check whether component already exists */
|
/* check whether component already exists */
|
||||||
icd = ipc_get_comp_by_id(ipc, comp->id);
|
icd = ipc_get_comp_by_id(ipc, comp->id);
|
||||||
|
@ -211,7 +210,7 @@ int ipc_comp_new(struct ipc *ipc, struct sof_ipc_comp *comp)
|
||||||
|
|
||||||
platform_shared_commit(icd, sizeof(*icd));
|
platform_shared_commit(icd, sizeof(*icd));
|
||||||
|
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ipc_comp_free(struct ipc *ipc, uint32_t comp_id)
|
int ipc_comp_free(struct ipc *ipc, uint32_t comp_id)
|
||||||
|
|
Loading…
Reference in New Issue