Staging: hv: mousevsc: Get rid of the unused state: num_outstanding_req
authorK. Y. Srinivasan <kys@microsoft.com>
Thu, 29 Sep 2011 18:54:53 +0000 (11:54 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 4 Oct 2011 17:39:34 +0000 (10:39 -0700)
Get rid of the unused state: num_outstanding_req in struct mousevsc_dev.

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/hv_mouse.c

index 326d972394688557a76e0c92a0532df0ed45addf..092c0ff0f0f5c08868bd7b7cd074e6a4b25ddb5b 100644 (file)
@@ -157,7 +157,6 @@ struct mousevsc_dev {
        struct hv_device        *device;
        /* 0 indicates the device is being destroyed */
        atomic_t                ref_count;
-       int                     num_outstanding_req;
        unsigned char           init_complete;
        struct mousevsc_prt_msg protocol_req;
        struct mousevsc_prt_msg protocol_resp;
@@ -729,8 +728,6 @@ static int mousevsc_on_device_remove(struct hv_device *device)
         *
         * so that outstanding requests can be completed.
         */
-       while (input_dev->num_outstanding_req)
-               udelay(100);
 
        input_dev = final_release_input_device(device);