diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-10-24 22:17:51 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-25 17:42:24 +0300 |
commit | 2c087dfcc9d5e7e8557d217f01f58ba42d1ddbf1 (patch) | |
tree | d85d8a6839263a69623d8eea3f1d2025b9eee43e /drivers/uio | |
parent | 7ce9a701ac8f44798e46dede02b924504dc65a5c (diff) | |
download | linux-2c087dfcc9d5e7e8557d217f01f58ba42d1ddbf1.tar.xz |
mlxsw: spectrum: Use 'bitmap_zalloc()' when applicable
Use 'bitmap_zalloc()' to simplify code, improve the semantic and avoid
some open-coded arithmetic in allocator arguments.
Also change the corresponding 'kfree()' into 'bitmap_free()' to keep
consistency.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/uio')
0 files changed, 0 insertions, 0 deletions