OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3552fb
)
RDMA/cm: Remove unused store to ret in cm_rej_handler
author
Danit Goldberg
<danitg@mellanox.com>
Wed, 6 May 2020 07:46:54 +0000
(10:46 +0300)
committer
Jason Gunthorpe
<jgg@mellanox.com>
Wed, 13 May 2020 00:32:53 +0000
(21:32 -0300)
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>
drivers/infiniband/core/cm.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/core/cm.c
b/drivers/infiniband/core/cm.c
index
ea39109
..
c12fd67
100644
(file)
--- 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;
}