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

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.comSigned-Off-By: default avatarVinod Koul <vkoul@kernel.org>
parent bb6d3fb3
...@@ -416,7 +416,7 @@ static ssize_t engine_group_id_store(struct device *dev, ...@@ -416,7 +416,7 @@ static ssize_t engine_group_id_store(struct device *dev,
struct idxd_device *idxd = engine->idxd; struct idxd_device *idxd = engine->idxd;
long id; long id;
int rc; int rc;
struct idxd_group *prevg, *group; struct idxd_group *prevg;
rc = kstrtol(buf, 10, &id); rc = kstrtol(buf, 10, &id);
if (rc < 0) if (rc < 0)
...@@ -436,7 +436,6 @@ static ssize_t engine_group_id_store(struct device *dev, ...@@ -436,7 +436,6 @@ static ssize_t engine_group_id_store(struct device *dev,
return count; return count;
} }
group = &idxd->groups[id];
prevg = engine->group; prevg = engine->group;
if (prevg) if (prevg)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment