From: K. Y. Srinivasan Date: Sat, 27 Aug 2011 18:31:41 +0000 (-0700) Subject: Staging: hv: vmbus: Get rid of an unnecessary check in vmbus_connect() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c2ec81cb3e9d6cb6d819155883684d94fab005ad;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git Staging: hv: vmbus: Get rid of an unnecessary check in vmbus_connect() Get rid of an unnecessary check in vmbus_connect(). Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/connection.c b/drivers/staging/hv/connection.c index 6aab802ba99a..ca92ca34261b 100644 --- a/drivers/staging/hv/connection.c +++ b/drivers/staging/hv/connection.c @@ -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");