From a0a388396f4949694b37b412e5e1c1be564612bb Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Thu, 5 May 2011 22:46:18 +0000 Subject: [PATCH] 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 --- scst/src/scst_proc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scst/src/scst_proc.c b/scst/src/scst_proc.c index 17ed310b1..338a77a5f 100644 --- a/scst/src/scst_proc.c +++ b/scst/src/scst_proc.c @@ -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);