linux/drivers/scsi/bfa
Peter Senna Tschudin 0e772b33a1 bfa: remove useless return variables
This patch remove variables that are initialized with a constant,
are never updated, and are only used as parameter of return.
Return the constant instead of using a variable.

Verified by compilation only.

The coccinelle script that find and fixes this issue is:
// <smpl>
@@
type T;
constant C;
identifier ret;
@@
- T ret = C;
... when != ret
    when strict
return
- ret
+ C
;
// </smpl>

Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Acked-by: Sudarsana Kalluru <Sudarsana.Kalluru@qlogic.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2014-07-25 17:16:55 -04:00
..
bfa_core.c [SCSI] bfa: Fix for bcu or hcm faa query hang 2013-12-19 07:39:05 -08:00
bfa_cs.h [SCSI] bfa: Make changes to FCXP resource management. 2012-09-24 12:10:56 +04:00
bfa_defs_fcs.h [SCSI] bfa: Add support to register node symbolic name with name server 2012-09-24 12:10:57 +04:00
bfa_defs_svc.h [SCSI] bfa: firmware statistics update 2013-06-26 15:07:16 -07:00
bfa_defs.h [SCSI] bfa: Firmware patch simplification 2013-12-19 07:39:04 -08:00
bfa_fc.h [SCSI] bfa: change FC_ELS_TOV to 20sec 2013-12-19 07:39:05 -08:00
bfa_fcbuild.c [SCSI] bfa: Add support for FC Arbitrated Loop topology. 2012-10-07 11:03:50 +01:00
bfa_fcbuild.h [SCSI] bfa: Add support to register node symbolic name with name server 2012-09-24 12:10:57 +04:00
bfa_fcpim.c [SCSI] bfa: Fix WARN_ON condition check 2013-06-26 11:45:51 -07:00
bfa_fcpim.h [SCSI] bfa: Add support for IO throttling at port level 2012-10-07 11:21:29 +01:00
bfa_fcs_fcpim.c [SCSI] bfa: Add support for max target ports discovery 2012-09-24 12:10:57 +04:00
bfa_fcs_lport.c [SCSI] bfa: LUN discovery issue in direct attach mode 2013-12-19 07:39:05 -08:00
bfa_fcs_rport.c [SCSI] bfa: Fix bug_on condition in RPSC rsp handling 2013-06-26 16:47:36 -07:00
bfa_fcs.c [SCSI] bfa: Support for FC BB credit recovery 2013-06-26 11:40:12 -07:00
bfa_fcs.h [SCSI] bfa: Fix crash when symb name set for offline vport 2013-12-03 06:56:49 -08:00
bfa_hw_cb.c [SCSI] bfa: Update RME interrupt handling. 2011-07-27 14:44:48 +04:00
bfa_hw_ct.c [SCSI] bfa: Update RME interrupt handling. 2011-07-27 14:44:48 +04:00
bfa_ioc_cb.c [SCSI] bfa: Firmware patch simplification 2013-12-19 07:39:04 -08:00
bfa_ioc_ct.c [SCSI] bfa: kdump fix on 815 and 825 adapters 2013-06-26 13:12:19 -07:00
bfa_ioc.c [SCSI] bfa: Replace large udelay() with mdelay() 2014-03-19 15:04:47 -07:00
bfa_ioc.h bfa: Fix undefined bit shift on big-endian architectures with 32-bit DMA address 2014-07-25 17:16:54 -04:00
bfa_modules.h [SCSI] bfa: Add support to read/update the FRU data. 2012-10-07 11:26:53 +01:00
bfa_plog.h [SCSI] bfa: clean up one line functions 2010-12-21 12:32:43 -06:00
bfa_port.c [SCSI] bfa: Add diagnostic port (D-Port) support 2012-10-07 11:17:27 +01:00
bfa_port.h [SCSI] bfa: Add diagnostic port (D-Port) support 2012-10-07 11:17:27 +01:00
bfa_svc.c [SCSI] bfa: Observed auto D-port mode instead of manual 2013-12-19 07:39:05 -08:00
bfa_svc.h [SCSI] bfa: Add dynamic diagnostic port support 2013-06-26 11:44:20 -07:00
bfa.h [SCSI] bfa: Revised Fabric Assigned Address(FAA) feature implementation. 2012-03-28 09:55:22 +01:00
bfad_attr.c [SCSI] bfa: Fix crash when symb name set for offline vport 2013-12-03 06:56:49 -08:00
bfad_bsg.c bfa: remove useless return variables 2014-07-25 17:16:55 -04:00
bfad_bsg.h [SCSI] bfa: Firmware patch simplification 2013-12-19 07:39:04 -08:00
bfad_debugfs.c bfa: switch to fixed_size_llseek() 2013-06-29 12:57:32 +04:00
bfad_drv.h [SCSI] bfa: Driver version upgrade to 3.2.23.0 2013-12-19 07:39:06 -08:00
bfad_im.c [SCSI] bfa: set correct command return code 2014-03-15 10:19:17 -07:00
bfad_im.h [SCSI] bfa: Fix to set vport FC host sysfs entries 2012-05-22 11:06:29 +01:00
bfad.c bfa: allocate memory with GFP_ATOMIC in spinlock context 2014-05-19 19:12:22 +02:00
bfi_ms.h [SCSI] bfa: Support for FC BB credit recovery 2013-06-26 11:40:12 -07:00
bfi_reg.h [SCSI] bfa: Flash Controller PLL initialization fixes 2012-10-07 11:12:12 +01:00
bfi.h [SCSI] bfa: Observed auto D-port mode instead of manual 2013-12-19 07:39:05 -08:00
Makefile [SCSI] bfa: Add BSG interface to support ELS, CT and vendor commands. 2011-06-29 15:59:53 -05:00