mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joerg Roedel <joerg.roedel@amd.com>
To: mingo@redhat.com, tglx@linutronix.de
Cc: linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org,
	bhavna.sarathy@amd.com, robert.richter@amd.com,
	Joerg Roedel <joerg.roedel@amd.com>
Subject: [PATCH 6/6] AMD IOMMU: remove unnecessary code from the iommu_enable function
Date: Thu, 3 Jul 2008 19:35:11 +0200	[thread overview]
Message-ID: <1215106511-12915-7-git-send-email-joerg.roedel@amd.com> (raw)
In-Reply-To: <1215106511-12915-1-git-send-email-joerg.roedel@amd.com>

This code removes a leftover from the iommu_enable function. The ctrl variable
is assigned but never used.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
---
 arch/x86/kernel/amd_iommu_init.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/arch/x86/kernel/amd_iommu_init.c b/arch/x86/kernel/amd_iommu_init.c
index c970fac..2a13e43 100644
--- a/arch/x86/kernel/amd_iommu_init.c
+++ b/arch/x86/kernel/amd_iommu_init.c
@@ -169,14 +169,11 @@ static void __init iommu_feature_disable(struct amd_iommu *iommu, u8 bit)
 
 void __init iommu_enable(struct amd_iommu *iommu)
 {
-	u32 ctrl;
-
 	printk(KERN_INFO "AMD IOMMU: Enabling IOMMU at ");
 	print_devid(iommu->devid, 0);
 	printk(" cap 0x%hx\n", iommu->cap_ptr);
 
 	iommu_feature_enable(iommu, CONTROL_IOMMU_EN);
-	ctrl = readl(iommu->mmio_base + MMIO_CONTROL_OFFSET);
 }
 
 static u8 * __init iommu_map_mmio_space(u64 address)
-- 
1.5.3.7



  parent reply	other threads:[~2008-07-03 18:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-03 17:35 [PATCH 0/6] AMD IOMMU updates Joerg Roedel
2008-07-03 17:35 ` [PATCH 1/6] AMD IOMMU: more verbose Kconfig description text Joerg Roedel
2008-07-03 17:35 ` [PATCH 2/6] AMD IOMMU: remove unnecessary set_bit_string Joerg Roedel
2008-07-03 17:35 ` [PATCH 3/6] AMD IOMMU: flush domain TLB when there is more than one page to flush Joerg Roedel
2008-07-03 18:01   ` [PATCH 3/6] AMD IOMMU: flush domain TLB when there is more than onepage " Duran, Leo
2008-07-03 17:35 ` [PATCH 4/6] AMD IOMMU: honor iommu=off instead of amd_iommu=off Joerg Roedel
2008-07-03 17:35 ` [PATCH 5/6] AMD IOMMU: don't try to init IOMMU if early detect code did not detect one Joerg Roedel
2008-07-03 17:35 ` Joerg Roedel [this message]
2008-07-04  9:52 ` [PATCH 0/6] AMD IOMMU updates Ingo Molnar
2008-07-07  7:40   ` FUJITA Tomonori
2008-07-07  7:44     ` Ingo Molnar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1215106511-12915-7-git-send-email-joerg.roedel@amd.com \
    --to=joerg.roedel@amd.com \
    --cc=bhavna.sarathy@amd.com \
    --cc=iommu@lists.linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=robert.richter@amd.com \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®