From 42828d8d5f2bb01f88059e5ffaad24e948ce3987 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 3 Feb 2004 18:38:27 -0800 Subject: [PATCH] [PATCH] gcc-3.5: pnpbios drivers/pnp/pnpbios/core.c:438: warning: use of cast expressions as lvalues is deprecated --- drivers/pnp/pnpbios/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pnp/pnpbios/core.c b/drivers/pnp/pnpbios/core.c index 5385876b8cb63..4ceecdf445d1d 100644 --- a/drivers/pnp/pnpbios/core.c +++ b/drivers/pnp/pnpbios/core.c @@ -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); -- 2.53.0