x86: fixes

Remove gratuitous casts.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
---
 arch/x86/kernel/io_apic.c |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff -r fdf803aea767 arch/x86/kernel/io_apic.c
--- a/arch/x86/kernel/io_apic.c	Tue Nov 18 11:17:57 2008 +1030
+++ b/arch/x86/kernel/io_apic.c	Tue Nov 18 11:20:08 2008 +1030
@@ -1320,8 +1320,7 @@
 
 
 	if (setup_ioapic_entry(mp_ioapics[apic].mp_apicid, irq, &entry,
-				cpu_mask_to_apicid(
-					(const cpumask_t *)to_cpumask(mask)),
+				cpu_mask_to_apicid(to_cpumask(mask)),
 				trigger, polarity, cfg->vector)) {
 		printk("Failed to setup ioapic entry for ioapic  %d, pin %d\n",
 		       mp_ioapics[apic].mp_apicid, pin);
@@ -2256,8 +2255,8 @@
 			    to_cpumask(cfg->old_domain), cpu_online_mask);
 		cfg->move_cleanup_count =
 				cpumask_weight(to_cpumask(cleanup_mask));
-		send_IPI_mask((const cpumask_t *)to_cpumask(cleanup_mask),
-				IRQ_MOVE_CLEANUP_VECTOR);
+		send_IPI_mask(to_cpumask(cleanup_mask),
+			      IRQ_MOVE_CLEANUP_VECTOR);
 		cfg->move_in_progress = 0;
 	}
 }
@@ -3500,7 +3499,7 @@
 		cfg = irq_cfg(irq);
 		cpumask_and(to_cpumask(tmp), to_cpumask(cfg->domain),
 					     TARGET_CPUS);
-		dest = cpu_mask_to_apicid((const cpumask_t *)to_cpumask(tmp));
+		dest = cpu_mask_to_apicid(to_cpumask(tmp));
 
 		msg.address_hi = HT_IRQ_HIGH_DEST_ID(dest);
 
