Skip to content

Commit 2bacad9

Browse files
ipc4: remove unnecessary code
icd is NULL by the time rfree(icd) is called, hence rfree(icd) can be removed. Signed-off-by: Serhiy Katsyuba <serhiy.katsyuba@intel.com>
1 parent 2896e23 commit 2bacad9

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/ipc/ipc4/helper.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,6 @@ __cold static int ipc4_add_comp_dev(struct comp_dev *dev)
12711271
sizeof(struct ipc_comp_dev));
12721272
if (!icd) {
12731273
tr_err(&ipc_tr, "alloc failed");
1274-
rfree(icd);
12751274
return IPC4_OUT_OF_MEMORY;
12761275
}
12771276

0 commit comments

Comments
 (0)