> --- a/drivers/macintosh/windfarm_smu_sat.c
> +++ b/drivers/macintosh/windfarm_smu_sat.c
> @@ -287,7 +287,7 @@ static int wf_sat_probe(struct i2c_client *client,
>               sens->sat = sat;
>               sens->sens.ops = &wf_sat_ops;
>               sens->sens.name = (char *) (sens + 1);
> -             snprintf(sens->sens.name, 16, "%s-%d", name, cpu);
> +             snprintf((char *)sens->sens.name, 16, "%s-%d",  name,
cpu);
>  
>               if (wf_register_sensor(&sens->sens))
>                       kfree(sens);

Wouldn't it be better to do:
                snprintf((char *)(sens + 1), 16, "%s-%d", name, cpu);

        David


_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to