From 28e04342db2865a13750a844249715263e2bdbb3 Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Tue, 18 Jan 2022 12:55:20 +0000 Subject: [PATCH] local: Simplify code iio_device_get_sample_size_mask(dev, dev->mask, dev->words) is the exact same as: iio_device_get_sample_size(dev) Signed-off-by: Paul Cercueil --- local.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/local.c b/local.c index 02088c629..daa39dc90 100644 --- a/local.c +++ b/local.c @@ -848,8 +848,7 @@ static int enable_high_speed(const struct iio_device *dev) req.id = 0; req.type = 0; - req.size = pdata->samples_count * - iio_device_get_sample_size_mask(dev, dev->mask, dev->words); + req.size = pdata->samples_count * iio_device_get_sample_size(dev); req.count = nb_blocks; ret = ioctl_nointr(fd, BLOCK_ALLOC_IOCTL, &req);