Re: [PATCH 1/7] mmc: at91_mci: fix pointer errors

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ryan Mallon
Date: Sunday, August 29, 2010 - 2:39 pm

On 08/28/2010 07:33 AM, Chris Ball wrote:

I see this is already applied, but why all the type trickery here? Why
not just:

	memcpy(dmabuf, sgbuffer, amount);
	dmabuf += amount / sizeof(dmabuf);


void * arithmetic is a gcc-ism. Isn't it better to cast to char *, since
the meaning will be a bit more clear.

~Ryan

-- 
Bluewater Systems Ltd - ARM Technology Solution Centre

Ryan Mallon         		5 Amuri Park, 404 Barbadoes St
ryan@bluewatersys.com         	PO Box 13 889, Christchurch 8013
http://www.bluewatersys.com	New Zealand
Phone: +64 3 3779127		Freecall: Australia 1800 148 751
Fax:   +64 3 3779135			  USA 1800 261 2934
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/7] mmc: at91_mci: fix pointer errors, Nicolas Ferre, (Fri Feb 26, 11:39 am)
[PATCH 2/7] mmc: at91_mci: fix timeout errors, Nicolas Ferre, (Fri Feb 26, 11:39 am)
[PATCH 3/7] mmc: at91_mci: use one coherent DMA buffer, Nicolas Ferre, (Fri Feb 26, 11:39 am)
[PATCH 4/7] mmc: at91_mci: use DMA buffer for read, Nicolas Ferre, (Fri Feb 26, 11:39 am)
[PATCH 5/7] mmc: at91_mci: enable large data blocks, Nicolas Ferre, (Fri Feb 26, 11:39 am)
Re: [PATCH 1/7] mmc: at91_mci: fix pointer errors, Dan Carpenter, (Fri Feb 26, 1:20 pm)
Re: [PATCH 4/7] mmc: at91_mci: use DMA buffer for read, Andrew Morton, (Tue Mar 2, 2:34 pm)
Re: [PATCH 4/7] mmc: at91_mci: use DMA buffer for read, Wolfgang =?iso-8859- ..., (Wed Mar 3, 12:34 am)
[PATCH] mmc: at91_mci: correct kunmap_atomic(), Nicolas Ferre, (Wed Mar 3, 7:17 am)
Re: [PATCH 1/7] mmc: at91_mci: fix pointer errors, Chris Ball, (Fri Aug 27, 12:33 pm)
Re: [PATCH 1/7] mmc: at91_mci: fix pointer errors, Chris Ball, (Fri Aug 27, 12:34 pm)
Re: [PATCH 1/7] mmc: at91_mci: fix pointer errors, Ryan Mallon, (Sun Aug 29, 2:39 pm)
Re: [PATCH 1/7] mmc: at91_mci: fix pointer errors, Wolfgang Mües, (Sun Aug 29, 11:51 pm)
Re: [PATCH 1/7] mmc: at91_mci: fix pointer errors, Wolfgang Mües, (Sun Aug 29, 11:56 pm)
Re: [PATCH 1/7] mmc: at91_mci: fix pointer errors, Ryan Mallon, (Mon Aug 30, 12:05 am)