We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1fcaf0 commit 91124acCopy full SHA for 91124ac
drivers/dma/idxd/sysfs.c
@@ -509,9 +509,6 @@ static ssize_t group_tokens_reserved_store(struct device *dev,
509
if (idxd->state == IDXD_DEV_ENABLED)
510
return -EPERM;
511
512
- if (idxd->token_limit == 0)
513
- return -EPERM;
514
-
515
if (val > idxd->max_tokens)
516
return -EINVAL;
517
@@ -557,8 +554,6 @@ static ssize_t group_tokens_allowed_store(struct device *dev,
557
554
558
555
559
556
560
561
562
if (val < 4 * group->num_engines ||
563
val > group->tokens_reserved + idxd->nr_tokens)
564
0 commit comments