public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] IB/qib: remove duplicate code
@ 2017-06-07 20:42 Gustavo A. R. Silva
  2017-06-08 10:37 ` Leon Romanovsky
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Gustavo A. R. Silva @ 2017-06-07 20:42 UTC (permalink / raw)
  To: Mike Marciniszyn, Doug Ledford, Sean Hefty, Hal Rosenstock
  Cc: linux-rdma, linux-kernel, Gustavo A. R. Silva

Remove duplicate code.

Addresses-Coverity-ID: 1226951
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
---
 drivers/infiniband/hw/qib/qib_mad.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/infiniband/hw/qib/qib_mad.c b/drivers/infiniband/hw/qib/qib_mad.c
index da295e0..c5eaa3c 100644
--- a/drivers/infiniband/hw/qib/qib_mad.c
+++ b/drivers/infiniband/hw/qib/qib_mad.c
@@ -874,8 +874,6 @@ static int subn_set_portinfo(struct ib_smp *smp, struct ib_device *ibdev,
 		ib_dispatch_event(&event);
 	}
 
-	ret = subn_get_portinfo(smp, ibdev, port);
-
 	/* restore re-reg bit per o14-12.2.1 */
 	pip->clientrereg_resv_subnetto |= clientrereg;
 
-- 
2.5.0

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-07-22 17:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-07 20:42 [PATCH] IB/qib: remove duplicate code Gustavo A. R. Silva
2017-06-08 10:37 ` Leon Romanovsky
2017-06-08 13:14 ` Dennis Dalessandro
     [not found]   ` <e5d9e8ea-460c-5318-e218-44449e6a3af7-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-06-08 19:52     ` Gustavo A. R. Silva
2017-07-22 17:20 ` Doug Ledford
     [not found]   ` <0d5d4e1c-ee2f-2ecb-bf25-b95954cbb5f7-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-07-22 17:22     ` Doug Ledford
2017-07-22 17:29       ` Gustavo A. R. Silva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox