Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7278902imm; Tue, 28 Aug 2018 09:12:50 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdafbd4lfrGhHycN30YqFPFr08lPxxUf7QaAW5WP0QMn8D7XEjtwdi3nN0gE1B2W1IJ+w9M0 X-Received: by 2002:aa7:850b:: with SMTP id v11-v6mr2268107pfn.165.1535472770045; Tue, 28 Aug 2018 09:12:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535472770; cv=none; d=google.com; s=arc-20160816; b=nZsrA87U4ZFNNhiUNe0J9SoTPcqwrxRInUQZu3GEHi0/b5CnO6BA3MP1KHY92EqL40 aB8+eQ4YfsKUPgkCRWQnbK0fLNbLcbjf0EPxAUTFReX7Q+xPFsuPMEY6g4ft1GBYTOuG USbtzTu2zrs+hhOj2vlmjK54yJI2p2SM8ORdjUcRTnryCsJFAKBV4fgdUB5I1PIj7ONE qj+Rx8DfkrS+kktBGw66YjLOvY1KcBGnuTV6JMcrf29rFLP8EQbmyFqBicnktxz3XLV1 WCZHju4bZkkO6Cee3f43pYDWsT4dhbKMaIfGDjYHiISde/4yCzjyrz4HVlbwGy0txv5s 1JYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:arc-authentication-results; bh=VLYO5neCKY7tt3vYwif4qDxIB8VP1KZaNNJPwsePW+A=; b=SBGIJE+lWeTnauKXS8gvFIOQLYSGyBDxcdCWwvNxU548MEId8CmzQBVZWXCYU4CwNR 7ltM7lWw4iE35fIEbGBJWs/cvopFQafxYbq8jTqbYmiEHsvzKg1fDZBafN7/87/d8qao 4n8oQ+NqAcdkkN5hDpGw5rZt6pXuXU3R0vWp2MDca2KYS+9DaXkQKt8Nt05DDND/BvMV 5qtJkm80a7WVcPFwTthXa9yNjMM6ZQmNJw6Wd0IkTK1mcXlXKW9Y5zECmnqP35+a/SLs OYT6cYF9LOgpLhkt2LeGugJQuZznOjeHP3/kAGK1rIt3wuyE7SYWmG2Q7pxEMx9YgZra oiBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t89-v6si1347148pfe.59.2018.08.28.09.12.34; Tue, 28 Aug 2018 09:12:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727515AbeH1UDY (ORCPT + 99 others); Tue, 28 Aug 2018 16:03:24 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:55108 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726807AbeH1UDY (ORCPT ); Tue, 28 Aug 2018 16:03:24 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1fugZr-0002Sf-1g; Tue, 28 Aug 2018 16:10:47 +0000 From: Colin King To: Boris Ostrovsky , Juergen Gross , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , x86@kernel.org, xen-devel@lists.xenproject.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] x86/xen: remove redundant variable save_pud Date: Tue, 28 Aug 2018 17:10:46 +0100 Message-Id: <20180828161046.17165-1-colin.king@canonical.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King Variable save_pud is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: variable 'save_pud' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King --- arch/x86/xen/mmu_pv.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/xen/mmu_pv.c b/arch/x86/xen/mmu_pv.c index 06a814d44b9b..2fe5c9b1816b 100644 --- a/arch/x86/xen/mmu_pv.c +++ b/arch/x86/xen/mmu_pv.c @@ -2060,7 +2060,6 @@ void __init xen_relocate_p2m(void) pud_t *pud; pgd_t *pgd; unsigned long *new_p2m; - int save_pud; size = PAGE_ALIGN(xen_start_info->nr_pages * sizeof(unsigned long)); n_pte = roundup(size, PAGE_SIZE) >> PAGE_SHIFT; @@ -2090,7 +2089,6 @@ void __init xen_relocate_p2m(void) pgd = __va(read_cr3_pa()); new_p2m = (unsigned long *)(2 * PGDIR_SIZE); - save_pud = n_pud; for (idx_pud = 0; idx_pud < n_pud; idx_pud++) { pud = early_memremap(pud_phys, PAGE_SIZE); clear_page(pud); -- 2.17.1