Skip to content
Commit 92c54a65 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by David S. Miller
Browse files

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: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 32d51cef
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment