linux_old1/drivers/infiniband/hw/amso1100
Julia Lawall ab576627c8 RDMA/amso1100: Fix error return code
Set the return variable to an error code as done elsewhere in the function.

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

// <smpl>
(
if@p1 (\(ret < 0\|ret != 0\))
 { ... return ret; }
|
ret@p1 = 0
)
... when != ret = e1
    when != &ret
*if(...)
{
  ... when != ret = e2
      when forall
 return ret;
}

// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Roland Dreier <roland@purestorage.com>
2014-02-12 11:11:46 -08:00
..
Kbuild IB: Replace EXTRA_CFLAGS with ccflags-y 2010-10-23 13:45:03 -07:00
Kconfig
c2.c RDMA/amso1100: Fix error return code 2014-02-12 11:11:46 -08:00
c2.h drivers/infiniband/hw/amso1100: convert to using idr_alloc_cyclic 2013-04-29 18:28:41 -07:00
c2_ae.c IB: Remove unnecessary semicolons 2013-10-14 10:10:00 -07:00
c2_ae.h
c2_alloc.c RDMA/amso1100: Use the dma state API instead of pci equivalents 2010-04-21 15:23:10 -07:00
c2_cm.c RDMA/cma: Add IPv6 support for iWARP 2013-08-12 12:32:31 -07:00
c2_cq.c RDMA/amso1100: Use the dma state API instead of pci equivalents 2010-04-21 15:23:10 -07:00
c2_intr.c RDMA/amso1100: Add check if cache memory was allocated before freeing it 2014-01-22 23:03:59 -08:00
c2_mm.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
c2_mq.c
c2_mq.h RDMA/amso1100: Use the dma state API instead of pci equivalents 2010-04-21 15:23:10 -07:00
c2_pd.c Drivers: infinband: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
c2_provider.c IB: Use central enum for speed instead of hard-coded values 2012-03-05 09:25:16 -08:00
c2_provider.h RDMA/amso1100: Use the dma state API instead of pci equivalents 2010-04-21 15:23:10 -07:00
c2_qp.c drivers/infiniband/hw/amso1100: convert to using idr_alloc_cyclic 2013-04-29 18:28:41 -07:00
c2_rnic.c RDMA/amso1100: Fix error return code 2014-02-12 11:11:46 -08:00
c2_status.h
c2_user.h
c2_vq.c RDMA/amso1100: Fix compile warnings 2011-01-28 15:40:25 -08:00
c2_vq.h
c2_wr.h Fix common misspellings 2011-03-31 11:26:23 -03:00