[PATCH] staging: unisys: Remove unneeded variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch remove unneeded variable used to store return value.

Signed-off-by: Abdul Hussain <habdul@xxxxxxxxxxx>
---
 drivers/staging/unisys/visorbus/visorbus_main.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c b/drivers/staging/unisys/visorbus/visorbus_main.c
index c7db681..bceec88 100644
--- a/drivers/staging/unisys/visorbus/visorbus_main.c
+++ b/drivers/staging/unisys/visorbus/visorbus_main.c
@@ -835,7 +835,6 @@ away:
 static int
 visordriver_remove_device(struct device *xdev)
 {
-	int rc = 0;
 	struct visor_device *dev;
 	struct visor_driver *drv;
 
@@ -858,7 +857,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
-- 
1.9.1
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux