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-Tag: firefly_0821_release~3680^2~4313^2^2~823 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c2ec81cb3e9d6cb6d819155883684d94fab005ad;p=firefly-linux-kernel-4.4.55.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");