All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rapidio: remove reundant pointer md that is assigned but never read
@ 2017-10-31 11:45 Colin King
  0 siblings, 0 replies; only message in thread
From: Colin King @ 2017-10-31 11:45 UTC (permalink / raw)
  To: Matt Porter, Alexandre Bounine, Logan Gunthorpe
  Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

Pointer md is assigned a value but it is never read, hence it is
redundant and can be removed. Cleans up clang warning:

drivers/rapidio/devices/rio_mport_cdev.c:1071:2: warning: Value stored
to 'md' is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/rapidio/devices/rio_mport_cdev.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/rapidio/devices/rio_mport_cdev.c b/drivers/rapidio/devices/rio_mport_cdev.c
index dc5a33f93689..56496e636a40 100644
--- a/drivers/rapidio/devices/rio_mport_cdev.c
+++ b/drivers/rapidio/devices/rio_mport_cdev.c
@@ -1058,7 +1058,6 @@ static int rio_mport_transfer_ioctl(struct file *filp, void __user *arg)
 static int rio_mport_wait_for_async_dma(struct file *filp, void __user *arg)
 {
 	struct mport_cdev_priv *priv;
-	struct mport_dev *md;
 	struct rio_async_tx_wait w_param;
 	struct mport_dma_req *req;
 	dma_cookie_t cookie;
@@ -1068,7 +1067,6 @@ static int rio_mport_wait_for_async_dma(struct file *filp, void __user *arg)
 	int ret;
 
 	priv = (struct mport_cdev_priv *)filp->private_data;
-	md = priv->md;
 
 	if (unlikely(copy_from_user(&w_param, arg, sizeof(w_param))))
 		return -EFAULT;
-- 
2.14.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-10-31 11:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-31 11:45 [PATCH] rapidio: remove reundant pointer md that is assigned but never read Colin King

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.