From: Adrian Bunk <bunk@stusta.de>
To: Stefan Richter <stefanr@s5r6.in-berlin.de>
Cc: linux1394-devel@lists.sourceforge.net, bcollins@debian.org,
scjody@modernduck.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drivers/ieee1394/ohci1394.c: function calls without effect
Date: Thu, 9 Mar 2006 14:51:00 +0100 [thread overview]
Message-ID: <20060309135100.GD21864@stusta.de> (raw)
In-Reply-To: <tkrat.be39a8854a3c82c0@s5r6.in-berlin.de>
On Thu, Mar 09, 2006 at 02:18:28PM +0100, Stefan Richter wrote:
> ohci1394: Remove superfluous call to free_dma_rcv_ctx,
> spotted by Adrian Bunk. Also remove some superfluous comments.
>
> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
>
> Index: linux/drivers/ieee1394/ohci1394.c
> ===================================================================
> --- linux.orig/drivers/ieee1394/ohci1394.c 2006-03-06 20:04:10.000000000 +0100
> +++ linux/drivers/ieee1394/ohci1394.c 2006-03-09 14:09:21.000000000 +0100
> @@ -3462,24 +3462,13 @@ static void ohci1394_pci_remove(struct p
> case OHCI_INIT_HAVE_TXRX_BUFFERS__MAYBE:
> /* The ohci_soft_reset() stops all DMA contexts, so we
> * dont need to do this. */
> - /* Free AR dma */
> free_dma_rcv_ctx(&ohci->ar_req_context);
> free_dma_rcv_ctx(&ohci->ar_resp_context);
> -
> - /* Free AT dma */
> free_dma_trm_ctx(&ohci->at_req_context);
> free_dma_trm_ctx(&ohci->at_resp_context);
> -
> - /* Free IR dma */
> free_dma_rcv_ctx(&ohci->ir_legacy_context);
> -
> - /* Free IT dma */
> free_dma_trm_ctx(&ohci->it_legacy_context);
>...
Unless I'm mireading the code, it's impossible after the call of
free_dma_rcv_ctx() that free_dma_trm_ctx() will do anything.
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
next prev parent reply other threads:[~2006-03-09 13:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-09 11:41 drivers/ieee1394/ohci1394.c: function calls without effect Adrian Bunk
2006-03-09 13:18 ` [PATCH] " Stefan Richter
2006-03-09 13:51 ` Adrian Bunk [this message]
2006-03-09 14:06 ` Adrian Bunk
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=20060309135100.GD21864@stusta.de \
--to=bunk@stusta.de \
--cc=bcollins@debian.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux1394-devel@lists.sourceforge.net \
--cc=scjody@modernduck.com \
--cc=stefanr@s5r6.in-berlin.de \
/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