From: Jesper Juhl <jesper.juhl@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Shannon Nelson <shannon.nelson@intel.com>,
Chris Leech <christopher.leech@intel.com>,
Jesper Juhl <jesper.juhl@gmail.com>
Subject: [PATCH] Remove an unused variable from the Intel I/OAT DMA engine driver
Date: Sun, 16 Sep 2007 23:31:50 +0200 [thread overview]
Message-ID: <200709162331.50784.jesper.juhl@gmail.com> (raw)
The 'u16 chanctrl' variable in
drivers/dma/ioatdma.c::ioat_dma_free_chan_resources() is completely
unused and gcc quite rightfully warns about it:
drivers/dma/ioatdma.c:247: warning: unused variable 'chanctrl'
This patch removes the unused variable and silences the warning.
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
---
ioatdma.c | 1 -
1 file changed, 1 deletion(-)
--- linux-2.6/drivers/dma/ioatdma.c~ 2007-09-16 23:24:20.000000000 +0200
+++ linux-2.6/drivers/dma/ioatdma.c 2007-09-16 23:24:20.000000000 +0200
@@ -244,7 +244,6 @@ static void ioat_dma_free_chan_resources
struct ioat_dma_chan *ioat_chan = to_ioat_chan(chan);
struct ioat_device *ioat_device = to_ioat_device(chan->device);
struct ioat_desc_sw *desc, *_desc;
- u16 chanctrl;
int in_use_descs = 0;
ioat_dma_memcpy_cleanup(ioat_chan);
next reply other threads:[~2007-09-16 21:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-16 21:31 Jesper Juhl [this message]
2007-09-16 21:42 ` David Miller
2007-09-17 16:13 ` Nelson, Shannon
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=200709162331.50784.jesper.juhl@gmail.com \
--to=jesper.juhl@gmail.com \
--cc=christopher.leech@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=shannon.nelson@intel.com \
/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®