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

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
...@@ -191,13 +191,10 @@ static int traverse_pages_block(unsigned nelem, size_t size, ...@@ -191,13 +191,10 @@ static int traverse_pages_block(unsigned nelem, size_t size,
void *state) void *state)
{ {
void *pagedata; void *pagedata;
unsigned pageidx;
int ret = 0; int ret = 0;
BUG_ON(size > PAGE_SIZE); BUG_ON(size > PAGE_SIZE);
pageidx = PAGE_SIZE;
while (nelem) { while (nelem) {
int nr = (PAGE_SIZE/size); int nr = (PAGE_SIZE/size);
struct page *page; struct page *page;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment