Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

drivers/dma/idxd/cdev.c: In function idxd_cdev_open:
drivers/dma/idxd/cdev.c:77:20: warning:
variable idxd_cdev set but not used [-Wunused-but-set-variable]

commit 42d279f9137a ("dmaengine: idxd: add char driver to
expose submission portal to userland") involed this.

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/20200210151855.55044-1-yuehaibing@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

YueHaibing and committed by
Vinod Koul
bfc8f1a8 f7b280c6

-2
-2
drivers/dma/idxd/cdev.c
··· 74 74 struct idxd_device *idxd; 75 75 struct idxd_wq *wq; 76 76 struct device *dev; 77 - struct idxd_cdev *idxd_cdev; 78 77 79 78 wq = inode_wq(inode); 80 79 idxd = wq->idxd; 81 80 dev = &idxd->pdev->dev; 82 - idxd_cdev = &wq->idxd_cdev; 83 81 84 82 dev_dbg(dev, "%s called\n", __func__); 85 83