linux/drivers/infiniband/hw
Julia Lawall 51fa3ca37e IB/qib: Fix error return code in qib_init_7322_variables()
Convert a 0 error return code to a negative one, as returned elsewhere
in the function.

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

// <smpl>
@@
identifier ret;
expression e,e1,e2,e3,e4,x;
@@

(
if (\(ret != 0\|ret < 0\) || ...) { ... return ...; }
|
ret = 0
)
... when != ret = e1
*x = \(kmalloc\|kzalloc\|kcalloc\|devm_kzalloc\|ioremap\|ioremap_nocache\|devm_ioremap\|devm_ioremap_nocache\)(...);
... when != x = e2
    when != ret = e3
*if (x == NULL || ...)
{
  ... when != ret = e4
*  return ret;
}
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
2012-08-15 11:58:21 -07:00
..
amso1100 IB: Use central enum for speed instead of hard-coded values 2012-03-05 09:25:16 -08:00
cxgb3 cxgb3: Convert t3_l2t_get() over to dst_neigh_lookup(). 2012-07-05 02:29:40 -07:00
cxgb4 RDMA/cxgb4: Fix endianness of addition to mpa->private_data_size 2012-07-08 18:02:33 -07:00
ehca Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
ipath IB/ipath: Replace open-coded ARRAY_SIZE with macro 2012-05-08 11:17:20 -07:00
mlx4 InfiniBand/RDMA changes for the 3.6 merge window: 2012-07-24 13:56:26 -07:00
mthca IB/mthca: Fill in sq_sig_type in query QP 2012-07-11 09:22:57 -07:00
nes RDMA/nes: Don't call event handler if pointer is NULL 2012-05-14 12:48:07 -07:00
ocrdma RDMA/ocrdma: Fix check of GSI CQs 2012-07-27 13:14:44 -07:00
qib IB/qib: Fix error return code in qib_init_7322_variables() 2012-08-15 11:58:21 -07:00