From c4f6f81007cf6ab720067d8f8e9288c5dfd5a720 Mon Sep 17 00:00:00 2001 From: John Levon Date: Thu, 18 Feb 2021 16:01:21 +0000 Subject: use sizeof() consistently (#351) The most common way we have written this is as "sizeof()"; use this form consistently. Signed-off-by: John Levon Reviewed-by: Thanos Makatos --- lib/dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/dma.c') diff --git a/lib/dma.c b/lib/dma.c index c860154..07d12b3 100644 --- a/lib/dma.c +++ b/lib/dma.c @@ -175,7 +175,7 @@ dma_controller_remove_region(dma_controller_t *dma, * check whether memmove eliminates this warning. */ memcpy(region, &dma->regions[dma->nregions - 1], - sizeof *region); + sizeof(*region)); dma->nregions--; return 0; } -- cgit v1.1