linux/drivers/infiniband/hw
Julia Lawall 6950a235b8 IB/mlx4: Adjust duplicate test
Delete successive tests to the same location.  The code tested the result
of a previous allocation, that itself was already tested.  It is changed to
test the result of the most recent allocation.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@s exists@
local idexpression y;
expression x,e;
@@

*if ( \(x == NULL\|IS_ERR(x)\|y != 0\) )
 { ... when forall
   return ...; }
... when != \(y = e\|y += e\|y -= e\|y |= e\|y &= e\|y++\|y--\|&y\)
    when != \(XT_GETPAGE(...,y)\|WMI_CMD_BUF(...)\)
*if ( \(x == NULL\|IS_ERR(x)\|y != 0\) )
 { ... when forall
   return ...; }
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Roland Dreier <roland@purestorage.com>
2013-02-15 15:23:26 -08:00
..
amso1100 Drivers: infinband: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
cxgb3 RDMA/cxgb3: use WARN 2012-11-26 11:08:16 -08:00
cxgb4 RDMA/cxgb4: Fix bug for active and passive LE hash collision path 2012-12-19 23:03:12 -08:00
ehca Drivers: infinband: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
ipath Drivers: infinband: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
mlx4 IB/mlx4: Adjust duplicate test 2013-02-15 15:23:26 -08:00
mthca Drivers: infinband: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
nes Drivers: infinband: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
ocrdma RDMA/ocrdma: Fix CQE expansion of unsignaled WQE 2012-09-14 10:40:58 -07:00
qib IB/qib: Fix for broken sparse warning fix 2013-02-05 09:43:09 -08:00