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:
parent
baf9b70540
commit
a3276bf32a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue