Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268072
b: refs/heads/master
c: d9add43
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Aug 29, 2011
1 parent 4d7b5ec commit eafa125
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b737b2e00d99a4c07ba3e50d2f5b154addfe7c76
refs/heads/master: d9add43b485538bd1e6c52d8177231ae31143265
13 changes: 7 additions & 6 deletions trunk/drivers/staging/hv/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,11 @@ static void process_chn_event(u32 relid)
channel = relid2channel(relid);

spin_lock_irqsave(&channel->inbound_lock, flags);
if (channel && (channel->onchannel_callback != NULL)) {
if (channel && (channel->onchannel_callback != NULL))
channel->onchannel_callback(channel->channel_callback_context);
} else {
else
pr_err("channel not found for relid - %u\n", relid);
}

spin_unlock_irqrestore(&channel->inbound_lock, flags);
}

Expand All @@ -246,16 +246,17 @@ void vmbus_on_event(unsigned long data)
if (!recv_int_page[dword])
continue;
for (bit = 0; bit < 32; bit++) {
if (sync_test_and_clear_bit(bit, (unsigned long *)&recv_int_page[dword])) {
if (sync_test_and_clear_bit(bit,
(unsigned long *)&recv_int_page[dword])) {
relid = (dword << 5) + bit;

if (relid == 0) {
if (relid == 0)
/*
* Special case - vmbus
* channel protocol msg
*/
continue;
}

process_chn_event(relid);
}
}
Expand Down

0 comments on commit eafa125

Please sign in to comment.