atm: nicstar: Use kcalloc() to simplify code
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 18 Feb 2022 17:46:51 +0000 (18:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Feb 2022 16:38:12 +0000 (16:38 +0000)
commit92c54a65e6a82a897a9fecaae8de6c57682ba510
tree532d63482392d6a08449cf69f12601c73366cb57
parent32d51cef91dbd6a95616b99d9f061e62be3aef30
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>
drivers/atm/nicstar.c