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:
Vladislav Bolkhovitin
2011-05-05 22:46:18 +00:00
parent f9cbfe51cd
commit a0a388396f

View File

@@ -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);