From 707f84af6280b04a2ebc37ed22514ffcc376a913 Mon Sep 17 00:00:00 2001 From: Mitchel Humpherys <mitchelh@codeaurora.org> Date: Fri, 6 Nov 2015 15:25:02 -0800 Subject: [PATCH] lrdp-v2: mm: Remove unused variable The pfn_offset variable in pfn_to_page_vmemmap is not used. Remove it. Change-Id: I9d8379916252c9fa5bef290378f802b82df86a35 --- linux-ramdump-parser-v2/mm.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/linux-ramdump-parser-v2/mm.py b/linux-ramdump-parser-v2/mm.py index 72e611f..df85030 100755 --- a/linux-ramdump-parser-v2/mm.py +++ b/linux-ramdump-parser-v2/mm.py @@ -1,4 +1,4 @@ -# Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. +# Copyright (c) 2013-2015, The Linux Foundation. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 and @@ -140,7 +140,6 @@ def page_to_pfn_vmemmap(ramdump, page): def pfn_to_page_vmemmap(ramdump, pfn): mem_map = 0xffffffbc00000000 page_size = ramdump.sizeof('struct page') - pfn_offset = ramdump.phys_offset >> 12 return mem_map + (pfn * page_size) -- GitLab