projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06e62a4
)
drivers/rapidio/devices/rio_mport_cdev.c: remove redundant pointer md
author
Colin Ian King
<
[email protected]
>
Wed, 22 Aug 2018 05:01:01 +0000
(22:01 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 22 Aug 2018 17:52:51 +0000
(10:52 -0700)
Pointer md is being assigned but is never used hence it is redundant and
can be removed.
Cleans up clang warning:
warning: variable 'md' set but not used [-Wunused-but-set-variable]
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Colin Ian King <
[email protected]
>
Acked-by: Alexandre Bounine <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/rapidio/devices/rio_mport_cdev.c
patch
|
blob
|
history
diff --git
a/drivers/rapidio/devices/rio_mport_cdev.c
b/drivers/rapidio/devices/rio_mport_cdev.c
index a8cb8d2f2abbbff0ce6405b14d4fc73172d1391b..cbe467ff1aba9d8ca72588f51856f2239dd4d0d9 100644
(file)
--- a/
drivers/rapidio/devices/rio_mport_cdev.c
+++ b/
drivers/rapidio/devices/rio_mport_cdev.c
@@
-1006,7
+1006,6
@@
out_free:
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;
@@
-1016,7
+1015,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;