aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2021-07-14 13:14:41 +0200
committerJonathan Cameron <[email protected]>2021-07-17 17:57:46 +0100
commit458516508df977efd3ff043d5ff77cad2d8f9d64 (patch)
tree5ef5d32f6786924cd50fdbe8f895f16b61f5f60b /include
parent62f9eb7079a91fa19edc14971b38d8737704ef0f (diff)
iio: buffer: Save a few cycles in 'iio_scan_mask_set()'
Use 'bitmap_alloc()' instead of 'bitmap_zalloc()' because the bitmap is fully overridden by a 'bitmap_copy()' call just after its allocation. While at it, fix the style of a NULL check. Signed-off-by: Christophe JAILLET <[email protected]> Link: https://lore.kernel.org/r/89d8a766eb971eda1ee362444a8711037bdb208c.1626261211.git.christophe.jaillet@wanadoo.fr Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions