[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100302133434.761df661.akpm@linux-foundation.org>
Date: Tue, 2 Mar 2010 13:34:34 -0800
From: Andrew Morton <akpm@...ux-foundation.org>
To: Nicolas Ferre <nicolas.ferre@...el.com>
Cc: linux-mmc@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, wolfgang.mues@...rswald.de,
avictor.za@...il.com
Subject: Re: [PATCH 4/7] mmc: at91_mci: use DMA buffer for read
On Fri, 26 Feb 2010 19:39:32 +0100
Nicolas Ferre <nicolas.ferre@...el.com> wrote:
> + kunmap_atomic(((void *)sgbuffer)-sg->offset, KM_BIO_SRC_IRQ);
It's a feature of kunmap_atomic() that it will accept a pointer to any
location in the page. So the subtraction isn't strictly needed.
And if the subtraction is removed, the (void*) cast can also be removed.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists