[U-Boot] [PATCH] spl_mmc: cleanup variable types

Tom Rini trini at ti.com
Thu Mar 21 17:59:52 CET 2013


On Thu, Mar 21, 2013 at 03:55:17PM +0100, Peter Korsgaard wrote:

> block_read returns unsigned long, so it doesn't make sense to check for
> < 0. and neither does marking the header structure as const and then
> casting away the constness to load data into it.
> 
> Also cleanup some unneeded pointer casting while we're at it.
> 
> Signed-off-by: Peter Korsgaard <peter.korsgaard at barco.com>

Reviewed-by: Tom Rini <trini at ti.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130321/81b826e1/attachment.pgp>


More information about the U-Boot mailing list