]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
IB/qib: remove duplicate code
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Wed, 7 Jun 2017 20:42:02 +0000 (15:42 -0500)
committerDoug Ledford <dledford@redhat.com>
Mon, 24 Jul 2017 12:44:46 +0000 (08:44 -0400)
Remove duplicate code.

Addresses-Coverity-ID: 1226951
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/qib/qib_mad.c

index da295e0392ed8446db60a7666a4faa54d234baf9..c5eaa3c0ed24b393c7785318c5cc7b7048d6ae10 100644 (file)
@@ -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;