]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
hv: vmbus: missing curly braces in vmbus_process_offer()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 18 Mar 2015 19:29:25 +0000 (12:29 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Mar 2015 10:53:54 +0000 (11:53 +0100)
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')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/channel_mgmt.c

index 5f8e47bf5ccca41098fe794c478c0638b3f7e7b8..25dbbaf42266a9b70310f59cfa134d8c7884f8a6 100644 (file)
@@ -415,7 +415,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
@@ -427,6 +427,7 @@ static void vmbus_process_offer(struct vmbus_channel *newchannel)
                                          vmbus_sc_creation_cb);
                                queue_work(newchannel->controlwq,
                                           &newchannel->work);
+                       }
 
                        return;
                }