]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: unisys: visorbus: remove unnecessary poll_count logic
authorTim Sell <Timothy.Sell@unisys.com>
Thu, 31 Mar 2016 03:06:08 +0000 (23:06 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Mar 2016 20:11:27 +0000 (13:11 -0700)
The use of poll_count is a vestige from long-ago testing, which is no
longer needed.  It is removed by this patch.

Signed-off-by: Tim Sell <Timothy.Sell@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorchipset.c

index 17bedbc6761d940a240c7cd77c001296152e1544..61877722b1da3fc8dcfa0b47efbc3ae0f7a0dfe9 100644 (file)
@@ -1868,18 +1868,11 @@ controlvm_periodic_work(struct work_struct *work)
        struct controlvm_message inmsg;
        bool got_command = false;
        bool handle_command_failed = false;
-       static u64 poll_count;
 
        /* make sure visorbus server is registered for controlvm callbacks */
        if (visorchipset_visorbusregwait && !visorbusregistered)
                goto cleanup;
 
-       poll_count++;
-       if (poll_count >= 250)
-               ;       /* keep going */
-       else
-               goto cleanup;
-
        /* Check events to determine if response to CHIPSET_READY
         * should be sent
         */