linux_dsm_epyc7002/drivers/net/qlcnic
Julia Lawall 900853a4db drivers/net/qlcnic: Use available error codes
The error code is stored in the variable err, but it is the variable ret
that is returned instead.  So store the error code in ret.  Err is then
useless.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@r@
local idexpression x;
constant C;
@@

if (...) { ...
  x = -C
  ... when != x
(
  return <+...x...+>;
|
  return NULL;
|
  return;
|
* return ...;
)
}
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-08-18 14:26:32 -07:00
..
Makefile qlcnic: Qlogic ethernet driver for CNA devices 2010-01-16 01:17:15 -08:00
qlcnic_ctx.c qlcnic: add eswitch statistics support 2010-08-17 03:59:47 -07:00
qlcnic_ethtool.c qlcnic: turn off lro when rxcsum is disabled. 2010-08-17 03:59:49 -07:00
qlcnic_hdr.h qlcnic: device state management fixes for virtual func 2010-08-17 03:59:46 -07:00
qlcnic_hw.c qlcnic: fix link diag test 2010-08-17 03:59:48 -07:00
qlcnic_init.c qlcnic: Remove obsolete code 2010-06-29 15:12:36 -07:00
qlcnic_main.c drivers/net/qlcnic: Use available error codes 2010-08-18 14:26:32 -07:00
qlcnic.h qlcnic: turn off lro when rxcsum is disabled. 2010-08-17 03:59:49 -07:00