diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2022-02-18 18:46:51 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-02-19 16:38:12 +0000 |
commit | 92c54a65e6a82a897a9fecaae8de6c57682ba510 (patch) | |
tree | 532d63482392d6a08449cf69f12601c73366cb57 /net/hsr | |
parent | 32d51cef91dbd6a95616b99d9f061e62be3aef30 (diff) |
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 'net/hsr')
0 files changed, 0 insertions, 0 deletions