mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-25 07:51:28 +00:00
scst: remove superfluous assignment in scst_dg_add()
The "res" is unconditionally set by the call to scst_dg_sysfs_add(), so setting it to ENOMEM above that is superfluous. Signed-off-by: David Butterfield <dab21774@gmail.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7119 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1296,7 +1296,6 @@ int scst_dg_add(struct kobject *parent, const char *name)
|
||||
res = -EEXIST;
|
||||
if (__lookup_dg_by_name(name))
|
||||
goto out_unlock;
|
||||
res = -ENOMEM;
|
||||
INIT_LIST_HEAD(&dg->dev_list);
|
||||
INIT_LIST_HEAD(&dg->tg_list);
|
||||
res = scst_dg_sysfs_add(parent, dg);
|
||||
|
||||
Reference in New Issue
Block a user