net: eql: Use kzalloc instead of kmalloc/memset
authorHaowen Bai <baihaowen@meizu.com>
Mon, 18 Apr 2022 10:22:13 +0000 (18:22 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 21 Apr 2022 12:40:21 +0000 (14:40 +0200)
commit9c8774e629a1950c24b44e3c8fb93d76fb644b49
tree81bc28c1275e352b7963e6f81267526a1a11e543
parent4facbe3d4426720b65354be1d0f5608c65eebc20
net: eql: Use kzalloc instead of kmalloc/memset

Use kzalloc rather than duplicating its implementation, which
makes code simple and easy to understand.

Signed-off-by: Haowen Bai <baihaowen@meizu.com>
Link: https://lore.kernel.org/r/1650277333-31090-1-git-send-email-baihaowen@meizu.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/eql.c