Skip to contentSkip to conversation

xen: Remove useless cast

PATCH Frediano Ziglio 1 participant 1 message Jul 15, 2014 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

BM macro just do a cast to long*. This cast was required to avoid a warning as ready was unsigned int instead of long.
As now the variable is already a long the cast is not needed.

---
 drivers/xen/events/events_fifo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/xen/events/events_fifo.c +1 -1
index 84b4bfb..d302639 100644
@@ -312,7 +312,7 @@ static void evtchn_fifo_handle_events(unsigned cpu)
 	ready = xchg(&control_block->ready, 0);
 
 	while (ready) {
-		q = find_first_bit(BM(&ready), EVTCHN_FIFO_MAX_QUEUES);
+		q = find_first_bit(&ready, EVTCHN_FIFO_MAX_QUEUES);
 		consume_one_event(cpu, control_block, q, &ready);
 		ready |= xchg(&control_block->ready, 0);
 	}
Signature · 1 line
1.9.1