mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-21 20:51:27 +00:00
scst: Make scst_create_tgt_attr() return the correct error code
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4973 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -2297,7 +2297,6 @@ int scst_create_tgt_attr(struct scst_tgt *tgt, struct kobj_attribute *attribute)
|
||||
if (res != 0) {
|
||||
PRINT_ERROR("Can't add attribute %s for tgt %s",
|
||||
attribute->attr.name, tgt->tgt_name);
|
||||
res = -ENOMEM;
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user