Skip to content

Commit

Permalink
ipc4: copier: remove unused endpoint[]
Browse files Browse the repository at this point in the history
The endpoint[] array is never initialized and is not really used.

Signed-off-by: Serhiy Katsyuba <[email protected]>
  • Loading branch information
serhiy-katsyuba-intel committed Dec 2, 2024
1 parent da2f00b commit ba075c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/audio/copier/copier.c
Original file line number Diff line number Diff line change
Expand Up @@ -956,8 +956,8 @@ static uint64_t copier_get_processed_data(struct comp_dev *dev, uint32_t stream_
ret = cd->dd[0]->total_data_processed;
break;
default:
ret = comp_get_total_data_processed(cd->endpoint[stream_no],
0, input);
comp_err(dev, "Unexpected gateway type encountered: %d",
dev->ipc_config.type);
break;
}
}
Expand Down
1 change: 0 additions & 1 deletion src/audio/copier/copier.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ struct copier_data {
struct ipc4_copier_module_cfg config;
void *gtw_cfg;
enum ipc4_gateway_type gtw_type;
struct comp_dev *endpoint[IPC4_COPIER_MODULE_OUTPUT_PINS_COUNT];
uint32_t endpoint_num;

/* buffer to mux/demux data from/to multiple endpoints for ALH multi-gateway case */
Expand Down

0 comments on commit ba075c6

Please sign in to comment.