]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] amifb sparse &=
authorGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 28 Jul 2004 16:05:49 +0000 (09:05 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 28 Jul 2004 16:05:49 +0000 (09:05 -0700)
Amiga Frame buffer: Use `&' instead of `&=' (found by sparse, present since at
least 2.0.x)

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/amifb.c

index cc8b43206b93a031cdb18a52f1f86d14729f604e..95ea71c9ba4cab506ad471b1da52c800eb4d0197 100644 (file)
@@ -1309,7 +1309,7 @@ static int amifb_set_par(struct fb_info *info)
                info->fix.ypanstep = 0;
        } else {
                info->fix.ywrapstep = 0;
-               if (par->vmode &= FB_VMODE_SMOOTH_XPAN)
+               if (par->vmode & FB_VMODE_SMOOTH_XPAN)
                        info->fix.xpanstep = 1;
                else
                        info->fix.xpanstep = 16<<maxfmode;