]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9a10bddb4bf7ed043ebf82c1688ba9d89e462a1a
tree532d63482392d6a08449cf69f12601c73366cb57
parent30de1402030ca0497f61ed7358ec55495a580b40
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