Commit bbea445
Jyri Sarha
Audio: igo_nr: Memory, blob, and fast_get allocs to module API
Allocate all memory, blob handlers, and fast_get() buffers through
module API mod_alloc() and friends and remove all redundant rfree(),
comp_data_blob_handler_free(), and fast_put() calls from module unload
functions and init error branches. The one rballoc() call is converted
to mod_balloc().
When resources are allocated through module API functions they
are automatically freed when the module is unloaded. This
simplifies error handling and unloading process.
Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>1 parent 2fe3981 commit bbea445
1 file changed
Lines changed: 9 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
421 | 420 | | |
422 | 421 | | |
423 | 422 | | |
424 | | - | |
| 423 | + | |
425 | 424 | | |
426 | 425 | | |
427 | 426 | | |
428 | 427 | | |
429 | 428 | | |
430 | 429 | | |
431 | 430 | | |
432 | | - | |
433 | | - | |
| 431 | + | |
434 | 432 | | |
435 | 433 | | |
436 | | - | |
| 434 | + | |
437 | 435 | | |
438 | | - | |
| 436 | + | |
439 | 437 | | |
440 | | - | |
441 | | - | |
| 438 | + | |
442 | 439 | | |
443 | 440 | | |
444 | 441 | | |
445 | | - | |
| 442 | + | |
446 | 443 | | |
447 | | - | |
448 | | - | |
449 | | - | |
| 444 | + | |
| 445 | + | |
450 | 446 | | |
451 | 447 | | |
452 | 448 | | |
453 | 449 | | |
454 | 450 | | |
455 | 451 | | |
456 | | - | |
457 | | - | |
| 452 | + | |
458 | 453 | | |
459 | 454 | | |
460 | 455 | | |
461 | 456 | | |
462 | 457 | | |
463 | 458 | | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | 459 | | |
475 | 460 | | |
476 | 461 | | |
477 | 462 | | |
478 | | - | |
479 | | - | |
480 | 463 | | |
481 | 464 | | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | 465 | | |
487 | 466 | | |
488 | 467 | | |
| |||
0 commit comments