diff options
author | 2022-02-18 18:46:51 +0100 | |
---|---|---|
committer | 2022-02-19 16:38:12 +0000 | |
commit | 92c54a65e6a82a897a9fecaae8de6c57682ba510 (patch) | |
tree | 532d63482392d6a08449cf69f12601c73366cb57 /drivers/net/dsa/microchip | |
parent | Merge branch 'dpaa2-eth-one-step-register' (diff) | |
download | linux-dev-92c54a65e6a82a897a9fecaae8de6c57682ba510.tar.xz linux-dev-92c54a65e6a82a897a9fecaae8de6c57682ba510.zip |
atm: nicstar: Use kcalloc() to simplify code
Use kcalloc() instead of kmalloc_array() and a loop to set all the values
of the array to NULL.
While at it, remove a duplicated assignment to 'scq->num_entries'.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/microchip')
0 files changed, 0 insertions, 0 deletions