diff --git a/scst/src/scst_sysfs.c b/scst/src/scst_sysfs.c index 188684320..354e65dee 100644 --- a/scst/src/scst_sysfs.c +++ b/scst/src/scst_sysfs.c @@ -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; }