hv: Reduce indention in vmbus_on_event
Reduce indention in vmbus_on_event() by converting two if (var) to if (!var) Signed-off-by: Olaf Hering <olaf@aepfle.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
b3ee87081c
commit
242b45aa8d
@ -287,30 +287,23 @@ void vmbus_on_event(unsigned long data)
|
|||||||
u32 *recv_int_page = vmbus_connection.recv_int_page;
|
u32 *recv_int_page = vmbus_connection.recv_int_page;
|
||||||
|
|
||||||
/* Check events */
|
/* Check events */
|
||||||
if (recv_int_page) {
|
if (!recv_int_page)
|
||||||
for (dword = 0; dword < maxdword; dword++) {
|
return;
|
||||||
if (recv_int_page[dword]) {
|
for (dword = 0; dword < maxdword; dword++) {
|
||||||
for (bit = 0; bit < 32; bit++) {
|
if (!recv_int_page[dword])
|
||||||
if (sync_test_and_clear_bit(bit,
|
continue;
|
||||||
(unsigned long *)
|
for (bit = 0; bit < 32; bit++) {
|
||||||
&recv_int_page[dword])) {
|
if (sync_test_and_clear_bit(bit, (unsigned long *)&recv_int_page[dword])) {
|
||||||
relid = (dword << 5) + bit;
|
relid = (dword << 5) + bit;
|
||||||
|
|
||||||
if (relid == 0) {
|
if (relid == 0) {
|
||||||
/* special case - vmbus channel protocol msg */
|
/* special case - vmbus channel protocol msg */
|
||||||
continue;
|
continue;
|
||||||
} else {
|
|
||||||
/* QueueWorkItem(VmbusProcessEvent, (void*)relid); */
|
|
||||||
/* ret = WorkQueueQueueWorkItem(gVmbusConnection.workQueue, VmbusProcessChannelEvent, (void*)relid); */
|
|
||||||
process_chn_event((void *)
|
|
||||||
(unsigned long)relid);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
process_chn_event((void *) (unsigned long)relid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user