[Cbe-oss-dev] [PATCH] cell: abstract spu management routines

Stephen Rothwell sfr at canb.auug.org.au
Wed Nov 8 17:28:30 EST 2006


On Tue, 07 Nov 2006 22:03:17 -0800 Geoff Levand <geoffrey.levand at am.sony.com> wrote:
>
> Michael Ellerman wrote:
> > On Tue, 2006-11-07 at 21:24 -0800, Geoff Levand wrote:
> >> Michael Ellerman wrote:
> >> >> +static struct platform_data *platform_data(struct spu *spu)
> >> >> +{
> >> >> +	BUG_ON(!spu->platform_data);
> >> >> +	return (struct platform_data*)spu->platform_data;
                       ^^^^^^^^^^^^^^^^^^^^^^^
Since platform_data is a void *, you don't need (or want) this explicit cast.

--
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/20061108/170b1e7e/attachment.pgp>


More information about the Linuxppc-dev mailing list