File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -1391,9 +1391,6 @@ static void sas_expander_release(struct device *dev)
1391
1391
struct sas_rphy * rphy = dev_to_rphy (dev );
1392
1392
struct sas_expander_device * edev = rphy_to_expander_device (rphy );
1393
1393
1394
- if (rphy -> q )
1395
- blk_cleanup_queue (rphy -> q );
1396
-
1397
1394
put_device (dev -> parent );
1398
1395
kfree (edev );
1399
1396
}
@@ -1403,9 +1400,6 @@ static void sas_end_device_release(struct device *dev)
1403
1400
struct sas_rphy * rphy = dev_to_rphy (dev );
1404
1401
struct sas_end_device * edev = rphy_to_end_device (rphy );
1405
1402
1406
- if (rphy -> q )
1407
- blk_cleanup_queue (rphy -> q );
1408
-
1409
1403
put_device (dev -> parent );
1410
1404
kfree (edev );
1411
1405
}
@@ -1634,8 +1628,7 @@ sas_rphy_remove(struct sas_rphy *rphy)
1634
1628
}
1635
1629
1636
1630
sas_rphy_unlink (rphy );
1637
- if (rphy -> q )
1638
- bsg_unregister_queue (rphy -> q );
1631
+ bsg_remove_queue (rphy -> q );
1639
1632
transport_remove_device (dev );
1640
1633
device_del (dev );
1641
1634
}
You can’t perform that action at this time.
0 commit comments