Skip to contentSkip to conversation

hv: vmbus: missing curly braces in vmbus_process_offer()

PATCH New Dan Carpenter 1 participant 1 message Mar 5, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hv: vmbus: missing curly braces in vmbus_process_offer()

The indenting makes it clear that there were curly braces intended here.

Fixes 2dd37cb81580 ('Drivers: hv: vmbus: Handle both rescind and offer messages in the same context')
drivers/hv/channel_mgmt.c +2 -1
index 6117891..b25f1ae 100644
@@ -351,7 +351,7 @@ static void vmbus_process_offer(struct vmbus_channel *newchannel)
 
 			newchannel->state = CHANNEL_OPEN_STATE;
 			channel->num_sc++;
-			if (channel->sc_creation_callback != NULL)
+			if (channel->sc_creation_callback != NULL) {
 				/*
 				 * We need to invoke the sub-channel creation
 				 * callback; invoke this in a seperate work
@@ -363,6 +363,7 @@ static void vmbus_process_offer(struct vmbus_channel *newchannel)
 					  vmbus_sc_creation_cb);
 				queue_work(newchannel->controlwq,
 					   &newchannel->work);
+			}
 
 			return;
 		}