]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: unisys: visorbus: Remove unneeded initialization
authorDavid Kershner <david.kershner@unisys.com>
Wed, 27 Sep 2017 17:14:24 +0000 (13:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Sep 2017 09:17:13 +0000 (11:17 +0200)
No need to set drv to NULL.

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

index d10af23a249c21c848456100f030290c7b68f467..56d1c1600693bfef3e46a033d0462c6dd16f8aa8 100644 (file)
@@ -1138,7 +1138,7 @@ static int visorchipset_initiate_device_pause_resume(struct visor_device *dev,
                                                     bool is_pause)
 {
        int err;
-       struct visor_driver *drv = NULL;
+       struct visor_driver *drv;
 
        /* If no driver associated with the device nothing to pause/resume */
        if (!dev->device.driver)