From 905acc6815f4e60c34e99faf1b46c1797369f652 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 15 Aug 2013 06:25:06 +0000 Subject: [PATCH] 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 --- scst/src/scst_sysfs.c | 1 - 1 file changed, 1 deletion(-) 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; }