Skip to content

Commit

Permalink
mm/hmm.c: remove unused variables align_start and align_end
Browse files Browse the repository at this point in the history
Variables align_start and align_end are being assigned but are never
used hence they are redundant and can be removed.

Cleans up clang warnings:
  warning: variable 'align_start' set but not used [-Wunused-but-set-variable]
  warning: variable 'align_size' set but not used [-Wunused-but-set-variable]

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Colin Ian King authored and torvalds committed Aug 17, 2018
1 parent 5241d47 commit 1e92641
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mm/hmm.c
Original file line number Diff line number Diff line change
Expand Up @@ -973,10 +973,7 @@ static RADIX_TREE(hmm_devmem_radix, GFP_KERNEL);

static void hmm_devmem_radix_release(struct resource *resource)
{
resource_size_t key, align_start, align_size;

align_start = resource->start & ~(PA_SECTION_SIZE - 1);
align_size = ALIGN(resource_size(resource), PA_SECTION_SIZE);
resource_size_t key;

mutex_lock(&hmm_devmem_lock);
for (key = resource->start;
Expand Down

0 comments on commit 1e92641

Please sign in to comment.