Staging: hv: vmbus: Get rid of an unnecessary check in vmbus_connect()
authorK. Y. Srinivasan <kys@microsoft.com>
Sat, 27 Aug 2011 18:31:41 +0000 (11:31 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 29 Aug 2011 18:10:01 +0000 (11:10 -0700)
Get rid of an unnecessary check in vmbus_connect().

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/connection.c

index 6aab802..ca92ca3 100644 (file)
@@ -50,10 +50,6 @@ int vmbus_connect(void)
        struct vmbus_channel_initiate_contact *msg;
        unsigned long flags;
 
-       /* Make sure we are not connecting or connected */
-       if (vmbus_connection.conn_state != DISCONNECTED)
-               return -EISCONN;
-
        /* Initialize the vmbus connection */
        vmbus_connection.conn_state = CONNECTING;
        vmbus_connection.work_queue = create_workqueue("hv_vmbus_con");