staging: unisys: visorbus: visorbus_main.c: remove check from typename_show

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>
This commit is contained in:
Sameer Wadgaonkar 2017-07-17 16:16:58 -04:00 committed by Greg Kroah-Hartman
parent baf9b70540
commit a3276bf32a
1 changed files with 1 additions and 1 deletions

View 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)