[PATCH 2/3] [libata] pata_of_platform: OF-Platform PATA device driver

Stephen Rothwell sfr at canb.auug.org.au
Sun Dec 16 01:09:22 EST 2007


On Fri, 14 Dec 2007 21:24:38 +0300 Anton Vorontsov <avorontsov at ru.mvista.com> wrote:
>
> +	prop = (u32 *)of_get_property(dn, "reg-shift", NULL);

This cast is unnecessary.

> +	if (prop)
> +		reg_shift = *prop;
> +
> +	prop = (u32 *)of_get_property(dn, "pio-mode", NULL);

So is this one.

-- 
Cheers,
Stephen Rothwell                    sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20071216/4b199038/attachment.pgp>


More information about the Linuxppc-dev mailing list