From: Joerg Roedel <joerg.roedel@amd.com>
To: Jiri Kosina <jkosina@suse.cz>
Cc: Ingo Molnar <mingo@elte.hu>,
linux-kernel@vger.kernel.org, Leo Duran <leo.duran@amd.com>
Subject: Re: [PATCH] x86 iommu: remove unneeded parenthesis
Date: Tue, 19 Aug 2008 09:54:17 +0200 [thread overview]
Message-ID: <20080819075417.GA12255@amd.com> (raw)
In-Reply-To: <alpine.LNX.1.10.0808190211060.18058@jikos.suse.cz>
On Tue, Aug 19, 2008 at 02:13:55AM +0200, Jiri Kosina wrote:
> 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);
>
True, thanks Jiri.
Acked-by: Joerg Roedel <joerg.roedel@amd.com>
--
| AMD Saxony Limited Liability Company & Co. KG
Operating | Wilschdorfer Landstr. 101, 01109 Dresden, Germany
System | Register Court Dresden: HRA 4896
Research | General Partner authorized to represent:
Center | AMD Saxony LLC (Wilmington, Delaware, US)
| General Manager of AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy
prev parent reply other threads:[~2008-08-19 7:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-19 0:13 Jiri Kosina
2008-08-19 0:17 ` Ingo Molnar
2008-08-19 0:19 ` Jiri Kosina
2008-08-19 7:54 ` Joerg Roedel [this message]
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=20080819075417.GA12255@amd.com \
--to=joerg.roedel@amd.com \
--cc=jkosina@suse.cz \
--cc=leo.duran@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/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
Powered by JetHome