Skip to content

Commit 7a47c52

Browse files
Uwe Kleine-Königgregkh
authored andcommitted
s390/ccwgroup: Drop if with an always false condition
The driver core only calls a bus remove callback when there is a driver. So dev->driver is never NULL and the check can safely be removed. Reviewed-by: Cornelia Huck <[email protected]> Acked-by: Vineeth Vijayan <[email protected]> Signed-off-by: Uwe Kleine-König <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent a7bdb9a commit 7a47c52

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/s390/cio/ccwgroup.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,6 @@ static int ccwgroup_remove(struct device *dev)
444444
struct ccwgroup_device *gdev = to_ccwgroupdev(dev);
445445
struct ccwgroup_driver *gdrv = to_ccwgroupdrv(dev->driver);
446446

447-
if (!dev->driver)
448-
return 0;
449447
if (gdrv->remove)
450448
gdrv->remove(gdev);
451449

0 commit comments

Comments
 (0)