+ rapidio-remove-redundant-pointer-md.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: drivers/rapidio/devices/rio_mport_cdev.c: remove redundant pointer md
has been added to the -mm tree.  Its filename is
     rapidio-remove-redundant-pointer-md.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/rapidio-remove-redundant-pointer-md.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/rapidio-remove-redundant-pointer-md.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
Subject: drivers/rapidio/devices/rio_mport_cdev.c: remove redundant pointer md

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/20180711082346.5223-1-colin.king@xxxxxxxxxxxxx
Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
Acked-by: Alexandre Bounine <alex.bou9@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/rapidio/devices/rio_mport_cdev.c |    2 --
 1 file changed, 2 deletions(-)

diff -puN drivers/rapidio/devices/rio_mport_cdev.c~rapidio-remove-redundant-pointer-md drivers/rapidio/devices/rio_mport_cdev.c
--- a/drivers/rapidio/devices/rio_mport_cdev.c~rapidio-remove-redundant-pointer-md
+++ a/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(
 	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;
_

Patches currently in -mm which might be from colin.king@xxxxxxxxxxxxx are

ocfs2-make-several-functions-and-variables-static-and-some-const.patch
mm-zsmalloc-make-several-functions-and-a-struct-static.patch
mm-swap-make-swap_slots_cache_mutex-and-swap_slots_cache_enable_mutex-static.patch
userfaultfd-remove-redundant-pointer-uwq.patch
mm-hmmc-remove-unused-variables-align_start-and-align_end.patch
spellingtxt-add-more-spellings-to-spellingtxt.patch
lib-make-struct-pointer-foo-static.patch
rapidio-remove-redundant-pointer-md.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux