Commit f7b280c6 authored by YueHaibing's avatar YueHaibing Committed by Vinod Koul
Browse files

dmaengine: idxd: remove set but not used variable 'group'



drivers/dma/idxd/sysfs.c: In function engine_group_id_store:
drivers/dma/idxd/sysfs.c:419:29: warning: variable group set but not used [-Wunused-but-set-variable]

It is not used, so remove it.

Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Acked-by: default avatarDave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20200211135335.55924-1-yuehaibing@huawei.com


Signed-Off-By: default avatarVinod Koul <vkoul@kernel.org>
parent bb6d3fb3
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -416,7 +416,7 @@ static ssize_t engine_group_id_store(struct device *dev,
	struct idxd_device *idxd = engine->idxd;
	long id;
	int rc;
	struct idxd_group *prevg, *group;
	struct idxd_group *prevg;

	rc = kstrtol(buf, 10, &id);
	if (rc < 0)
@@ -436,7 +436,6 @@ static ssize_t engine_group_id_store(struct device *dev,
		return count;
	}

	group = &idxd->groups[id];
	prevg = engine->group;

	if (prevg)