2005-11-01 08:13:55

by Michael Krufky

[permalink] [raw]
Subject: [PATCH 04/37] dvb: Add ATSC support for DViCO FusionHDTV5 Lite




Attachments:
2361.patch (4.17 kB)

2005-11-03 03:29:29

by Andrew Morton

[permalink] [raw]
Subject: Re: [PATCH 04/37] dvb: Add ATSC support for DViCO FusionHDTV5 Lite

Michael Krufky <[email protected]> wrote:
>
> +static int tdvs_tua6034_pll_set(struct dvb_frontend* fe, struct dvb_frontend_parameters* params)
> +{
> + struct dvb_bt8xx_card *card = (struct dvb_bt8xx_card *) fe->dvb->priv;

The cast of a void* is unneeded. It's actually undesirable: if someone
were to convert the thing-being-casted to some other scalar type, the cast
would prevent the desired compiler warning.

2005-11-03 18:57:19

by Alexey Dobriyan

[permalink] [raw]
Subject: Re: [PATCH 04/37] dvb: Add ATSC support for DViCO FusionHDTV5 Lite

On Thu, Nov 03, 2005 at 01:29:14PM +1100, Andrew Morton wrote:
> Michael Krufky <[email protected]> wrote:
> > +static int tdvs_tua6034_pll_set(struct dvb_frontend* fe, struct dvb_frontend_parameters* params)
> > +{
> > + struct dvb_bt8xx_card *card = (struct dvb_bt8xx_card *) fe->dvb->priv;

[cast from void *]

Please, also

struct dvb_frontend *fe, struct dvb_frontend_parameters *params)
^ ^

2005-11-04 04:01:20

by Michael Krufky

[permalink] [raw]
Subject: Re: [PATCH 04/37] dvb: Add ATSC support for DViCO FusionHDTV5 Lite

Andrew Morton wrote:

>Michael Krufky <[email protected]> wrote:
>
>
>>+static int tdvs_tua6034_pll_set(struct dvb_frontend* fe, struct dvb_frontend_parameters* params)
>> +{
>> + struct dvb_bt8xx_card *card = (struct dvb_bt8xx_card *) fe->dvb->priv;
>>
>>
>
>The cast of a void* is unneeded. It's actually undesirable: if someone
>were to convert the thing-being-casted to some other scalar type, the cast
>would prevent the desired compiler warning.
>
Alexey Dobriyan wrote:

>Please, also
>
> struct dvb_frontend *fe, struct dvb_frontend_parameters *params)
> ^ ^
>
Both of these problems are all over dvb-kernel... We'll fix it up.

Thanks,

Michael Krufky