[PATCH] x86 iommu: remove unneeded parenthesis

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jiri Kosina
Date: Monday, August 18, 2008 - 5:13 pm

The parenthesis in __iommu_queue_command() are not needed when assigning 
into 'target' variable.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>

diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c
index de39e1f..69b4d06 100644
--- a/arch/x86/kernel/amd_iommu.c
+++ b/arch/x86/kernel/amd_iommu.c
@@ -65,7 +65,7 @@ static int __iommu_queue_command(struct amd_iommu *iommu, struct iommu_cmd *cmd)
  	u8 *target;

  	tail = readl(iommu->mmio_base + MMIO_CMD_TAIL_OFFSET);
-	target = (iommu->cmd_buf + tail);
+	target = iommu->cmd_buf + tail;
  	memcpy_toio(target, cmd, sizeof(*cmd));
  	tail = (tail + sizeof(*cmd)) % iommu->cmd_buf_size;
  	head = readl(iommu->mmio_base + MMIO_CMD_HEAD_OFFSET);
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] x86 iommu: remove unneeded parenthesis, Jiri Kosina, (Mon Aug 18, 5:13 pm)
Re: [PATCH] x86 iommu: remove unneeded parenthesis, Ingo Molnar, (Mon Aug 18, 5:17 pm)
Re: [PATCH] x86 iommu: remove unneeded parenthesis, Jiri Kosina, (Mon Aug 18, 5:19 pm)
Re: [PATCH] x86 iommu: remove unneeded parenthesis, Joerg Roedel, (Tue Aug 19, 12:54 am)