mm/hmm: remove redundant variable align_end
PATCH 1/1 mm/hmm: remove redundant variable align_end
From: Colin Ian King <[email protected]>
Variable align_end is assigned a value but it is never read, so the variable is redundant and can be removed. Cleans up the clang
warning: Value stored to 'align_end' is never read
Signed-off-by Colin Ian King <[email protected]>
--- mm/hmm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
mm/hmm.c +1 -2
@@ -803,11 +803,10 @@ 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_end; +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 ); - align_end = align_start + align_size -1 ;mutex_lock (&hmm_devmem_lock); for (key = resource->start;
Signature · 1 line
2.14.1
Quoted 7 lines · Colin King
From: Colin Ian King <[email protected]>
Variable
align_endis assigned a value but it is never read, so the variable is redundant and can be removed. Cleans up the clang
warning: Value stored to 'align_end' is never readSigned-off-by Colin Ian King <[email protected]>
Reviewed-by Jérôme Glisse <[email protected]>
Quoted 24 lines
--- mm/hmm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)mm/hmm.c +1
-2@@ -803,11 +803,10 @@ 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_end; +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 ); - align_end = align_start + align_size -1 ;mutex_lock (&hmm_devmem_lock); for (key = resource->start;Signature · 1 line
2.14.1
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html