From: YueHaibing Date: Mon, 10 Feb 2020 15:18:55 +0000 (+0800) Subject: dmaengine: idxd: remove set but not used variable 'idxd_cdev' X-Git-Tag: v5.10.7~2914^2~87 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bfc8f1a87c37e9762b8e37474267db36401e8161;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: YueHaibing Acked-by: Dave Jiang Link: https://lore.kernel.org/r/20200210151855.55044-1-yuehaibing@huawei.com Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/idxd/cdev.c b/drivers/dma/idxd/cdev.c index 1d73478..8dfdbe3 100644 --- a/drivers/dma/idxd/cdev.c +++ b/drivers/dma/idxd/cdev.c @@ -74,12 +74,10 @@ static int idxd_cdev_open(struct inode *inode, struct file *filp) struct idxd_device *idxd; struct idxd_wq *wq; struct device *dev; - struct idxd_cdev *idxd_cdev; wq = inode_wq(inode); idxd = wq->idxd; dev = &idxd->pdev->dev; - idxd_cdev = &wq->idxd_cdev; dev_dbg(dev, "%s called\n", __func__);