Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1179137
| From | Andrew Morton <akpm@linux-foundation.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] mm:Change unlabeled block of code to a else block in the function dma_pool_free |
| Date | 2015-07-08 00:50 +0200 |
| Message-ID | <pJJQC-36d-21@gated-at.bofh.it> (permalink) |
| References | <pJJQC-36d-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, 6 Jul 2015 19:30:31 -0400 Nicholas Krause <xerofoify@gmail.com> wrote:
> This fixes the unlabeled block of code after the if statement that
> executes if the passed dma variable of type dma_addr_t minus the
> structure pointer page's dma member is equal to the variable offset
> into a else block as this block should run when the if statement check
>
> Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
> ---
> mm/dmapool.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/mm/dmapool.c b/mm/dmapool.c
> index fd5fe43..ce7ff4b 100644
> --- a/mm/dmapool.c
> +++ b/mm/dmapool.c
> @@ -434,8 +434,7 @@ void dma_pool_free(struct dma_pool *pool, void *vaddr, dma_addr_t dma)
> "dma_pool_free %s, %p (bad vaddr)/%Lx\n",
> pool->name, vaddr, (unsigned long long)dma);
> return;
> - }
> - {
> + } else {
> unsigned int chain = page->offset;
> while (chain < pool->allocation) {
> if (chain != offset) {
This patch has no effect?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH] mm:Change unlabeled block of code to a else block in the function dma_pool_free Andrew Morton <akpm@linux-foundation.org> - 2015-07-08 00:50 +0200
csiph-web