Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx> --- fs/proc/vmcore.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/proc/vmcore.c b/fs/proc/vmcore.c index faf811ed9b15..028c8c904cbb 100644 --- a/fs/proc/vmcore.c +++ b/fs/proc/vmcore.c @@ -592,11 +592,10 @@ static int mmap_prepare_action_vmcore(struct vm_area_struct *vma) { struct mmap_action action; size_t size = vma->vm_end - vma->vm_start; - u64 start, end, len, tsz; + u64 start, len, tsz; struct vmcore_range *m; start = (u64)vma->vm_pgoff << PAGE_SHIFT; - end = start + size; len = 0; if (start < elfcorebuf_sz) { -- 2.51.0