* [PATCH] Remove an unused variable from the Intel I/OAT DMA engine driver
@ 2007-09-16 21:31 Jesper Juhl
2007-09-16 21:42 ` David Miller
2007-09-17 16:13 ` Nelson, Shannon
0 siblings, 2 replies; 3+ messages in thread
From: Jesper Juhl @ 2007-09-16 21:31 UTC (permalink / raw)
To: linux-kernel; +Cc: Shannon Nelson, Chris Leech, Jesper Juhl
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);
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Remove an unused variable from the Intel I/OAT DMA engine driver
2007-09-16 21:31 [PATCH] Remove an unused variable from the Intel I/OAT DMA engine driver Jesper Juhl
@ 2007-09-16 21:42 ` David Miller
2007-09-17 16:13 ` Nelson, Shannon
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2007-09-16 21:42 UTC (permalink / raw)
To: jesper.juhl; +Cc: linux-kernel, shannon.nelson, christopher.leech
From: Jesper Juhl <jesper.juhl@gmail.com>
Date: Sun, 16 Sep 2007 23:31:50 +0200
>
> 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>
Applied to net-2.6.24, thanks Jesper.
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH] Remove an unused variable from the Intel I/OAT DMA engine driver
2007-09-16 21:31 [PATCH] Remove an unused variable from the Intel I/OAT DMA engine driver Jesper Juhl
2007-09-16 21:42 ` David Miller
@ 2007-09-17 16:13 ` Nelson, Shannon
1 sibling, 0 replies; 3+ messages in thread
From: Nelson, Shannon @ 2007-09-17 16:13 UTC (permalink / raw)
To: Jesper Juhl, linux-kernel
>-----Original Message-----
>From: Jesper Juhl [mailto:jesper.juhl@gmail.com]
>Sent: Sunday, September 16, 2007 2:32 PM
>To: linux-kernel@vger.kernel.org
>Cc: Nelson, Shannon; Leech, Christopher; Jesper Juhl
>Subject: [PATCH] Remove an unused variable from the Intel
>I/OAT DMA engine driver
>
>
>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);
>
Yep, thanks. That's actually used in an internal version of the driver
and got missed in the stipping. I'll be sure it is properly taken care
of in the future.
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-09-17 16:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-16 21:31 [PATCH] Remove an unused variable from the Intel I/OAT DMA engine driver Jesper Juhl
2007-09-16 21:42 ` David Miller
2007-09-17 16:13 ` Nelson, Shannon
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®