]> git.hungrycats.org Git - linux/commitdiff
[PATCH] gcc-3.5: pnpbios
authorAndrew Morton <akpm@osdl.org>
Wed, 4 Feb 2004 02:38:27 +0000 (18:38 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 4 Feb 2004 02:38:27 +0000 (18:38 -0800)
drivers/pnp/pnpbios/core.c:438: warning: use of cast expressions as lvalues is deprecated

drivers/pnp/pnpbios/core.c

index 5385876b8cb636ec3fe2232786bfd56aba8dea4c..4ceecdf445d1dbad432ef820e8d6ed17858bc91a 100644 (file)
@@ -435,7 +435,7 @@ int __init pnpbios_probe_system(void)
         */
        for (check = (union pnp_bios_install_struct *) __va(0xf0000);
             check < (union pnp_bios_install_struct *) __va(0xffff0);
-            ((void *) (check)) += 16) {
+            check = (void *)check + 16) {
                if (check->fields.signature != PNP_SIGNATURE)
                        continue;
                printk(KERN_INFO "PnPBIOS: Found PnP BIOS installation structure at 0x%p\n", check);