Skip to content

Commit 4c7cee1

Browse files
RanderWanglrgirdwo
authored andcommitted
ipc4: refine code style
Signed-off-by: Rander Wang <rander.wang@intel.com>
1 parent 7f37de7 commit 4c7cee1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/audio/copier.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,7 @@ static struct comp_dev *copier_new(const struct comp_driver *drv,
239239
list_init(&dev->bsource_list);
240240
list_init(&dev->bsink_list);
241241

242-
if (IPC4_INVALID_NODE_ID == copier->gtw_cfg.node_id) {
243-
//nothing to do for converter
244-
} else {
242+
if (copier->gtw_cfg.node_id != IPC4_INVALID_NODE_ID) {
245243
struct ipc_comp_dev *ipc_pipe;
246244

247245
node_id.dw = copier->gtw_cfg.node_id;

0 commit comments

Comments
 (0)