diff --git a/scst/src/scst_pres.c b/scst/src/scst_pres.c index 85433044c..c20edd010 100644 --- a/scst/src/scst_pres.c +++ b/scst/src/scst_pres.c @@ -523,8 +523,6 @@ static void scst_pr_remove_registrants(struct scst_device *dev) { struct scst_dev_registrant *reg, *tmp_reg; - scst_assert_pr_mutex_held(dev); - list_for_each_entry_safe(reg, tmp_reg, &dev->dev_registrants_list, dev_registrants_list_entry) { scst_pr_remove_registrant(dev, reg); @@ -1171,8 +1169,6 @@ void scst_pr_clear_dev(struct scst_device *dev) { TRACE_ENTRY(); - scst_assert_pr_mutex_held(dev); - scst_pr_remove_registrants(dev); kfree(dev->pr_file_name);