From: Sameer Wadgaonkar Date: Mon, 17 Jul 2017 20:16:58 +0000 (-0400) Subject: staging: unisys: visorbus: visorbus_main.c: remove check from typename_show X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a3276bf32ac863714a89bf0f2365e057dccc89c4;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David Kershner Reviewed-by: David Binder Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c b/drivers/staging/unisys/visorbus/visorbus_main.c index 319745ec42aa..57f59cb487ae 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)