staging: unisys: Remove unneeded variable
authorAbdul Hussain <habdul@visteon.com>
Thu, 11 Jun 2015 10:03:49 +0000 (10:03 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Jun 2015 00:08:07 +0000 (17:08 -0700)
This patch remove unneeded variable used to store return value.

Signed-off-by: Abdul Hussain <habdul@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorbus_main.c

index dcce1f02d54d1584c2d0391d712a4ca5c3ddecd0..6fa17eadc3069e08ad2bfca9389c60d5fc081e91 100644 (file)
@@ -768,7 +768,6 @@ away:
 static int
 visordriver_remove_device(struct device *xdev)
 {
-       int rc = 0;
        struct visor_device *dev;
        struct visor_driver *drv;
 
@@ -791,7 +790,7 @@ visordriver_remove_device(struct device *xdev)
 
        put_device(&dev->device);
 
-       return rc;
+       return 0;
 }
 
 /** A particular type of visor driver calls this function to register