dmaengine: idxd: remove set but not used variable 'group'
authorYueHaibing <yuehaibing@huawei.com>
Tue, 11 Feb 2020 13:53:35 +0000 (21:53 +0800)
committerVinod Koul <vkoul@kernel.org>
Thu, 13 Feb 2020 13:47:36 +0000 (19:17 +0530)
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: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20200211135335.55924-1-yuehaibing@huawei.com
Signed-Off-By: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/sysfs.c

index 6d907fe150aa4d508337b6f86d38da237f456318..e4f35bdf252edaebcd3260d08580aca62708ba6c 100644 (file)
@@ -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)