Skip to content

Commit bf9869e

Browse files
committed
audio: crossover: use size_t for the proc-func lookup counter
Change the loop counter in the processing-function lookup helpers from int to size_t so it matches crossover_proc_fncount and avoids a signed/unsigned comparison. Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
1 parent ca16edf commit bf9869e

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

‎src/audio/crossover/crossover.h‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,9 @@ extern const size_t crossover_proc_fncount;
8787
/**
8888
* \brief Returns Crossover processing function.
8989
*/
90-
static inline crossover_process_func
91-
crossover_find_proc_func(enum sof_ipc_frame src_fmt)
90+
static inline crossover_process_func crossover_find_proc_func(enum sof_ipc_frame src_fmt)
9291
{
93-
int i;
92+
size_t i;
9493

9594
/* Find suitable processing function from map */
9695
for (i = 0; i < crossover_proc_fncount; i++)
@@ -103,10 +102,9 @@ static inline crossover_process_func
103102
/**
104103
* \brief Returns Crossover passthrough functions.
105104
*/
106-
static inline crossover_process_func
107-
crossover_find_proc_func_pass(enum sof_ipc_frame src_fmt)
105+
static inline crossover_process_func crossover_find_proc_func_pass(enum sof_ipc_frame src_fmt)
108106
{
109-
int i;
107+
size_t i;
110108

111109
/* Find suitable processing function from map */
112110
for (i = 0; i < crossover_proc_fncount; i++)

0 commit comments

Comments
 (0)