From: Sameer Wadgaonkar <[email protected]>

Remove check for xbus in typename_show() function in
visorbus_main.c.

Signed-off-by: Sameer Wadgaonkar <[email protected]>
Signed-off-by: David Kershner <[email protected]>
Reviewed-by: David Binder <[email protected]>
---
 drivers/staging/unisys/visorbus/visorbus_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c 
b/drivers/staging/unisys/visorbus/visorbus_main.c
index 319745e..57f59cb 100644
--- a/drivers/staging/unisys/visorbus/visorbus_main.c
+++ b/drivers/staging/unisys/visorbus/visorbus_main.c
@@ -221,7 +221,7 @@ static ssize_t typename_show(struct device *dev, struct 
device_attribute *attr,
        struct device_driver *xdrv = dev->driver;
        struct visor_driver *drv = NULL;
 
-       if (!xbus || !xdrv)
+       if (!xdrv)
                return 0;
        i = xbus->match(dev, xdrv);
        if (!i)
-- 
git-series 0.9.1
_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to