mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 22:26:23 +00:00
Cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4971 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -2298,8 +2298,10 @@ int scst_create_tgt_attr(struct scst_tgt *tgt, struct kobj_attribute *attribute)
|
||||
PRINT_ERROR("Can't add attribute %s for tgt %s",
|
||||
attribute->attr.name, tgt->tgt_name);
|
||||
res = -ENOMEM;
|
||||
goto out;
|
||||
}
|
||||
|
||||
out:
|
||||
return res;
|
||||
}
|
||||
EXPORT_SYMBOL(scst_create_tgt_attr);
|
||||
@@ -2316,9 +2318,10 @@ int scst_create_tgt_driver_attr(struct scst_tgt_template *tgtt,
|
||||
if (res != 0) {
|
||||
PRINT_ERROR("Can't add attribute %s for target driver %s",
|
||||
attribute->attr.name, tgtt->name);
|
||||
res = -ENOMEM;
|
||||
goto out;
|
||||
}
|
||||
|
||||
out:
|
||||
return res;
|
||||
}
|
||||
EXPORT_SYMBOL(scst_create_tgt_driver_attr);
|
||||
|
||||
Reference in New Issue
Block a user