]> err.no Git - linux-2.6/commitdiff
x86 iommu: remove unneeded parenthesis
authorJiri Kosina <jkosina@suse.cz>
Tue, 19 Aug 2008 00:13:55 +0000 (02:13 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 19 Aug 2008 00:16:24 +0000 (02:16 +0200)
The parenthesis in __iommu_queue_command() are not needed when assigning
into 'target' variable.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/amd_iommu.c

index de39e1f2ede5f1c820f4abe9fa4f9ec07948419b..69b4d060b21c4c32e8e40b45c9dc2171c1b56505 100644 (file)
@@ -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);