Commit f366dc4
committed
src: cosmetic: simplify an invalid configuration check
The condition delay_lines_size == 0 in src_params_general() can
trigger if cd->param.total == 0 or if cd->param.total == -1. However,
the latter is supposedly invalid and should be checked in a more
generic non-negativity test, so here it suffices to just check
cd->param.total != 0 before delay_lines_size is calculated.
Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>1 parent ac805f1 commit f366dc4
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
526 | | - | |
527 | | - | |
528 | | - | |
| 526 | + | |
| 527 | + | |
529 | 528 | | |
530 | 529 | | |
531 | 530 | | |
| 531 | + | |
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
| |||
0 commit comments