summaryrefslogtreecommitdiffstats
path: root/configfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'configfs.c')
-rw-r--r--configfs.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/configfs.c b/configfs.c
index 6a82b0b..924866c 100644
--- a/configfs.c
+++ b/configfs.c
@@ -153,11 +153,6 @@ static ssize_t cfg_avirt_stream_group_sealed_store(struct config_item *item,
unsigned long tmp;
char *p = (char *)page;
- if (__avirt_streams_sealed()) {
- pr_err("AVIRT streams are already sealed!\n");
- return -EPERM;
- }
-
CHK_ERR(kstrtoul(p, 10, &tmp));
if (tmp != 1) {
@@ -165,7 +160,7 @@ static ssize_t cfg_avirt_stream_group_sealed_store(struct config_item *item,
return -ERANGE;
}
- CHK_ERR(__avirt_card_register());
+ __avirt_streams_seal();
return count;
}