Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 52847bb7 authored by Colin Ian King's avatar Colin Ian King Committed by Boris Ostrovsky
Browse files

xen/privcmd: remove unused variable pageidx



Variable pageidx is assigned a value but it is never read, hence it
is redundant and can be removed. Cleans up clang warning:

drivers/xen/privcmd.c:199:2: warning: Value stored to 'pageidx'
is never read

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarJuergen Gross <jgross@suse.com>
Signed-off-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
parent 8dca4d96
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -191,13 +191,10 @@ static int traverse_pages_block(unsigned nelem, size_t size,
				void *state)
{
	void *pagedata;
	unsigned pageidx;
	int ret = 0;

	BUG_ON(size > PAGE_SIZE);

	pageidx = PAGE_SIZE;

	while (nelem) {
		int nr = (PAGE_SIZE/size);
		struct page *page;