Commit ada2e40
committed
firewire: ohci: use kcalloc() variant for array allocation
When allocating the list of isochronous context structure, a kzalloc()
variant of managed device API is used. In this case, a kcalloc() variant
is available.
This commit replaces these lines with devm_kcalloc().
Link: https://lore.kernel.org/r/20250908012108.514698-2-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>1 parent a901f49 commit ada2e40
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3482 | 3482 | | |
3483 | 3483 | | |
3484 | 3484 | | |
3485 | | - | |
3486 | 3485 | | |
3487 | 3486 | | |
3488 | 3487 | | |
| |||
3576 | 3575 | | |
3577 | 3576 | | |
3578 | 3577 | | |
3579 | | - | |
3580 | | - | |
| 3578 | + | |
3581 | 3579 | | |
3582 | 3580 | | |
3583 | 3581 | | |
| |||
3591 | 3589 | | |
3592 | 3590 | | |
3593 | 3591 | | |
3594 | | - | |
3595 | | - | |
| 3592 | + | |
3596 | 3593 | | |
3597 | 3594 | | |
3598 | 3595 | | |
| |||
0 commit comments