linux_dsm_epyc7002/drivers/net/ethernet/mellanox/mlx4
Julia Lawall 499b95f6b3 drivers/net/ethernet/mellanox/mlx4/mcg.c: fix error return code
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-08-14 17:00:57 -07:00
..
alloc.c mlx4_core: Change bitmap allocator to work in round-robin fashion 2012-05-14 13:44:38 -07:00
catas.c mlx4: Add support for EEH error recovery 2012-07-25 15:24:13 -07:00
cmd.c mlx4: Add support for EEH error recovery 2012-07-25 15:24:13 -07:00
cq.c mlx4_core: removed function index from vf. 2012-01-22 15:08:43 -05:00
en_cq.c net/mlx4_en: Add accelerated RFS support 2012-07-19 08:34:37 -07:00
en_dcb_nl.c drivers/net: fix unresolved 64bit math in mellanox/mlx4/en_dcb_nl.c 2012-04-16 02:12:11 -04:00
en_ethtool.c net/mlx4: Move MAC_MASK to a common place 2012-07-19 08:34:37 -07:00
en_main.c mlx4: Use port management change event instead of smp_snoop 2012-07-10 09:47:10 -07:00
en_netdev.c net/mlx4_en: Limit the RFS filter IDs to be < RPS_NO_FILTER 2012-07-26 00:23:55 -07:00
en_port.c mlx4: Ethernet port management modifications 2011-12-13 13:56:07 -05:00
en_port.h net/mlx4_core: set port QoS attributes 2012-04-05 05:08:03 -04:00
en_resources.c net/mlx4_en: Force user priority by QP attribute 2012-04-05 05:08:03 -04:00
en_rx.c net/mlx4_en: loopbacked packets are dropped when SMAC=DMAC 2012-08-03 16:49:02 -07:00
en_selftest.c
en_tx.c net/mlx4_en: Fixing TX queue stop/wake flow 2012-08-03 16:49:02 -07:00
eq.c InfiniBand/RDMA changes for the 3.6 merge window: 2012-07-24 13:56:26 -07:00
fw.c InfiniBand/RDMA changes for the 3.6 merge window: 2012-07-24 13:56:26 -07:00
fw.h {NET, IB}/mlx4: Add device managed flow steering firmware API 2012-07-07 16:23:05 -07:00
icm.c net/mlx4_core: Free ICM table in case of error 2012-07-11 09:22:58 -07:00
icm.h mlx4_core: Remove double function declarations 2012-07-11 09:22:58 -07:00
intf.c mlx4: Use port management change event instead of smp_snoop 2012-07-10 09:47:10 -07:00
Kconfig net/mlx4_en: DCB QoS support 2012-04-05 05:08:04 -04:00
main.c net/mlx4_core: Remove port type restrictions 2012-08-03 16:49:40 -07:00
Makefile net/mlx4_en: DCB QoS support 2012-04-05 05:08:04 -04:00
mcg.c drivers/net/ethernet/mellanox/mlx4/mcg.c: fix error return code 2012-08-14 17:00:57 -07:00
mlx4_en.h net/mlx4_en: Fixing TX queue stop/wake flow 2012-08-03 16:49:02 -07:00
mlx4.h InfiniBand/RDMA changes for the 3.6 merge window: 2012-07-24 13:56:26 -07:00
mr.c net/mlx4_core: Change SYNC_TPT to be native (not wrapped) 2012-05-16 00:56:58 -04:00
pd.c net/mlx4_core: Add XRC domains and counters to resource tracker 2012-05-16 00:56:59 -04:00
port.c InfiniBand/RDMA changes for the 3.6 merge window: 2012-07-24 13:56:26 -07:00
profile.c {NET, IB}/mlx4: Add device managed flow steering firmware API 2012-07-07 16:23:05 -07:00
qp.c mlx4_core: remove buggy sched_queue masking 2012-03-06 14:43:50 -05:00
reset.c
resource_tracker.c net/mlx4: Move MAC_MASK to a common place 2012-07-19 08:34:37 -07:00
sense.c net/mlx4_core: Remove port type restrictions 2012-08-03 16:49:40 -07:00
srq.c mlx4_core: removed function index from vf. 2012-01-22 15:08:43 -05:00