From: Lu Baolu <baolu.lu@linux.intel.com>
To: Joerg Roedel <joro@8bytes.org>, David Woodhouse <dwmw2@infradead.org>
Cc: ashok.raj@intel.com, iommu@lists.linux-foundation.org,
linux-kernel@vger.kernel.org, Lu Baolu <baolu.lu@linux.intel.com>
Subject: [PATCH 2/4] iommu/vt-d: Clean up unused variable in find_or_alloc_domain
Date: Fri, 4 May 2018 13:08:17 +0800 [thread overview]
Message-ID: <1525410499-18632-3-git-send-email-baolu.lu@linux.intel.com> (raw)
In-Reply-To: <1525410499-18632-1-git-send-email-baolu.lu@linux.intel.com>
Remove it to make the code more concise.
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
---
drivers/iommu/intel-iommu.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index 749d8f2..9064607 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -2533,7 +2533,7 @@ static struct dmar_domain *find_or_alloc_domain(struct device *dev, int gaw)
struct device_domain_info *info = NULL;
struct dmar_domain *domain = NULL;
struct intel_iommu *iommu;
- u16 req_id, dma_alias;
+ u16 dma_alias;
unsigned long flags;
u8 bus, devfn;
@@ -2541,8 +2541,6 @@ static struct dmar_domain *find_or_alloc_domain(struct device *dev, int gaw)
if (!iommu)
return NULL;
- req_id = ((u16)bus << 8) | devfn;
-
if (dev_is_pci(dev)) {
struct pci_dev *pdev = to_pci_dev(dev);
--
2.7.4
next prev parent reply other threads:[~2018-05-04 5:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-04 5:08 [PATCH 0/4] iommu/vt-d: Several cleanup patches Lu Baolu
2018-05-04 5:08 ` [PATCH 1/4] iommu: Clean up the comments for iommu_group_alloc Lu Baolu
2018-05-04 5:08 ` Lu Baolu [this message]
2018-05-04 5:08 ` [PATCH 3/4] iommu/vt-d: Clean up pasid quirk for pre-production devices Lu Baolu
2018-07-07 7:01 ` Chris Wilson
[not found] ` <153094688126.17577.10340360451966114779-3P6wQCRdEoTT/jhqYwntd7KMmGWinSIL2HeeBUIffwg@public.gmane.org>
2018-07-07 7:21 ` Lu Baolu
2018-05-04 5:08 ` [PATCH 4/4] iommu/vt-d: Remove unnecessary parentheses Lu Baolu
2018-05-15 14:35 ` [PATCH 0/4] iommu/vt-d: Several cleanup patches Joerg Roedel
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=1525410499-18632-3-git-send-email-baolu.lu@linux.intel.com \
--to=baolu.lu@linux.intel.com \
--cc=ashok.raj@intel.com \
--cc=dwmw2@infradead.org \
--cc=iommu@lists.linux-foundation.org \
--cc=joro@8bytes.org \
--cc=linux-kernel@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).