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:
Bart Van Assche
2013-08-15 06:25:06 +00:00
parent c282b7964e
commit 905acc6815

View File

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