> On Fri, 25 Jan 2008 16:06:32 +0100 Geert Uytterhoeven <[EMAIL PROTECTED]> 
> wrote:
>  static int ps3fb_cmp_mode(const struct fb_videomode *vmode,
>                         const struct fb_var_screeninfo *var)
>  {
> -     /* resolution + black border must match a native resolution */
> -     if (vmode->left_margin + vmode->xres + vmode->right_margin !=
> -         var->left_margin + var->xres + var->right_margin ||
> -         vmode->upper_margin + vmode->yres + vmode->lower_margin !=
> -         var->upper_margin + var->yres + var->lower_margin)
> +     long xres, yres, left_margin, right_margin, upper_margin, lower_margin;
> +     long dx, dy;

I don't think these need to be longs?  And they probably don't need to be
signed either.

If a switch to u32 improves the code any, it might be worth doing..

All the typecasting which this patch adds makes me wonder if the choice
of types requires a general revisit...
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Reply via email to