staging: unisys: visorbus: visorbus_main.c: remove check from typename_show
authorSameer Wadgaonkar <sameer.wadgaonkar@unisys.com>
Mon, 17 Jul 2017 20:16:58 +0000 (16:16 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Jul 2017 06:48:41 +0000 (08:48 +0200)
Remove check for xbus in typename_show() function in
visorbus_main.c.

Signed-off-by: Sameer Wadgaonkar <sameer.wadgaonkar@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Reviewed-by: David Binder <david.binder@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorbus_main.c

index 319745ec42aa0b61606a3f3c7f984ef666f09ee2..57f59cb487ae4da3c8e27f1b8286e21861fc93bc 100644 (file)
@@ -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)