mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-28 09:20:18 +00:00
Fix incorrect errors reporting on deleting LUNs from groups in the proc interface
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3439 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -2098,11 +2098,9 @@ static ssize_t scst_proc_groups_devices_write(struct file *file,
|
||||
list_for_each_entry(a, &acg->acg_dev_list, acg_dev_list_entry) {
|
||||
if (a->dev == dev) {
|
||||
rc = scst_acg_del_lun(acg, a->lun, true);
|
||||
if (rc) {
|
||||
if (rc)
|
||||
res = rc;
|
||||
goto out_free_up;
|
||||
}
|
||||
break;
|
||||
goto out_free_up;
|
||||
}
|
||||
}
|
||||
PRINT_ERROR("Device is not found in group %s", acg->acg_name);
|
||||
|
||||
Reference in New Issue
Block a user