projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d036fa
)
IB/mlx5: Remove "Always false" comparison
author
Eli Cohen
<eli@dev.mellanox.co.il>
Thu, 24 Oct 2013 09:01:01 +0000
(12:01 +0300)
committer
Roland Dreier
<roland@purestorage.com>
Fri, 8 Nov 2013 22:43:01 +0000
(14:43 -0800)
mlx5_cur and mlx5_new cannot have negative values so remove the
redundant condition.
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx5/qp.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/mlx5/qp.c
b/drivers/infiniband/hw/mlx5/qp.c
index ce14008a570279c9ec0c7be7df97ed3727eb6f5b..2e4c4656e047c8982ef5e7744c9832a6546c889e 100644
(file)
--- a/
drivers/infiniband/hw/mlx5/qp.c
+++ b/
drivers/infiniband/hw/mlx5/qp.c
@@
-1550,7
+1550,7
@@
static int __mlx5_ib_modify_qp(struct ib_qp *ibqp,
mlx5_cur = to_mlx5_state(cur_state);
mlx5_new = to_mlx5_state(new_state);
mlx5_st = to_mlx5_st(ibqp->qp_type);
- if (mlx5_
cur < 0 || mlx5_new < 0 || mlx5_
st < 0)
+ if (mlx5_st < 0)
goto out;
optpar = ib_mask_to_mlx5_opt(attr_mask);