diff options
author | Danit Goldberg <danitg@mellanox.com> | 2020-05-06 10:46:54 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2020-05-12 21:32:53 -0300 |
commit | 42113eed8f10533ba419df535b6c0ff9141a948c (patch) | |
tree | 2f9549f75470f6e19fa5b604272bc7171748ada8 /drivers | |
parent | d3552fb65d239be4775dc9b24740efd1bd70b459 (diff) | |
download | linux-42113eed8f10533ba419df535b6c0ff9141a948c.tar.bz2 |
RDMA/cm: Remove unused store to ret in cm_rej_handler
The 'goto out' label doesn't read ret, so don't set it.
Link: https://lore.kernel.org/r/20200506074701.9775-4-leon@kernel.org
Signed-off-by: Danit Goldberg <danitg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/core/cm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c index ea3910917a7b..c12fd673678d 100644 --- a/drivers/infiniband/core/cm.c +++ b/drivers/infiniband/core/cm.c @@ -3056,7 +3056,6 @@ static int cm_rej_handler(struct cm_work *work) __func__, be32_to_cpu(cm_id_priv->id.local_id), cm_id_priv->id.state); spin_unlock_irq(&cm_id_priv->lock); - ret = -EINVAL; goto out; } |