net-sysfs: convert xps_cpus_show to bitmap_zalloc
authorAntoine Tenart <atenart@kernel.org>
Thu, 18 Mar 2021 18:37:40 +0000 (19:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Mar 2021 21:56:22 +0000 (14:56 -0700)
commitea4fe7e842f6c7f972d795a8efc167c4bb33b62f
tree465a02134e7d3a184c3ce7c818976c20bdc9dcb4
parent6859d91549341c2ad769d482de58129f080c0f04
net-sysfs: convert xps_cpus_show to bitmap_zalloc

Use bitmap_zalloc instead of zalloc_cpumask_var in xps_cpus_show to
align with xps_rxqs_show. This will improve maintenance and allow us to
factorize the two functions. The function should behave the same.

Signed-off-by: Antoine Tenart <atenart@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net-sysfs.c