OpenCloudOS-Kernel/drivers/scsi/bfa
Julia Lawall 4644efabde [SCSI] bfa: eliminate useless code
The variable bfa_itnim is initialized twice to the same (side effect-free)
expression.  Drop one initialization.

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

// <smpl>
@forall@
idexpression *x;
identifier f!=ERR_PTR;
@@

x = f(...)
... when != x
(
x = f(...,<+...x...+>,...)
|
* x = f(...)
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Jing Huang <huangj@brocade.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-04-11 09:23:32 -05:00
..
include [SCSI] bfa: Remove unused header files and did some cleanup. 2010-03-07 13:27:51 +05:30
Makefile [SCSI] bfa: IOC changes: Support faster recovery and split bfa_ioc.c into ASIC specific code. 2010-03-07 12:49:48 +05:30
bfa_callback_priv.h
bfa_cb_ioim_macros.h [SCSI] bfa: fixed checkpatch errors for bfad files 2009-12-04 12:00:09 -06:00
bfa_cee.c [SCSI] bfa: fixed checkpatch errors for bfad files 2009-12-04 12:00:09 -06:00
bfa_core.c [SCSI] bfa: Added firmware save clear feature for BFA driver. 2010-03-07 12:58:59 +05:30
bfa_csdebug.c [SCSI] bfa: fixed checkpatch errors for bfad files 2009-12-04 12:00:09 -06:00
bfa_fcpim.c [SCSI] bfa: fixed checkpatch errors for bfad files 2009-12-04 12:00:09 -06:00
bfa_fcpim_priv.h [SCSI] bfa: fixed checkpatch errors for bfad files 2009-12-04 12:00:09 -06:00
bfa_fcport.c [SCSI] bfa: Remove unused header files and did some cleanup. 2010-03-07 13:27:51 +05:30
bfa_fcs.c [SCSI] bfa: New interface to handle firmware upgrade scenario 2010-03-04 16:14:10 +05:30
bfa_fcs_lport.c [SCSI] bfa: Replace bfa_get_attr() with specific APIs 2010-03-07 13:07:00 +05:30
bfa_fcs_port.c [SCSI] bfa: Rename pport to fcport in BFA FCS. 2010-03-07 13:05:10 +05:30
bfa_fcs_uf.c [SCSI] bfa: New interface to handle firmware upgrade scenario 2010-03-04 16:14:10 +05:30
bfa_fcxp.c [SCSI] bfa: fixed checkpatch errors for bfad files 2009-12-04 12:00:09 -06:00
bfa_fcxp_priv.h
bfa_fwimg_priv.h
bfa_hw_cb.c [SCSI] bfa: Fix Command Queue (CPE) full condition check and ack CPE interrupt. 2010-03-07 13:02:14 +05:30
bfa_hw_ct.c [SCSI] bfa: Fix Command Queue (CPE) full condition check and ack CPE interrupt. 2010-03-07 13:02:14 +05:30
bfa_intr.c [SCSI] bfa: Fix Command Queue (CPE) full condition check and ack CPE interrupt. 2010-03-07 13:02:14 +05:30
bfa_intr_priv.h [SCSI] bfa: fixed checkpatch errors for bfad files 2009-12-04 12:00:09 -06:00
bfa_ioc.c [SCSI] bfa: Replace bfa_get_attr() with specific APIs 2010-03-07 13:07:00 +05:30
bfa_ioc.h [SCSI] bfa: Replace bfa_get_attr() with specific APIs 2010-03-07 13:07:00 +05:30
bfa_ioc_cb.c [SCSI] bfa: Remove unused header files and did some cleanup. 2010-03-07 13:27:51 +05:30
bfa_ioc_ct.c [SCSI] bfa: Remove unused header files and did some cleanup. 2010-03-07 13:27:51 +05:30
bfa_iocfc.c [SCSI] bfa: IOC fixes, check for IOC down condition. 2010-03-07 13:03:50 +05:30
bfa_iocfc.h [SCSI] bfa: Fix Command Queue (CPE) full condition check and ack CPE interrupt. 2010-03-07 13:02:14 +05:30
bfa_iocfc_q.c
bfa_ioim.c [SCSI] bfa: Replace bfa_assert() with bfa_sm_fault() 2010-03-07 12:54:18 +05:30
bfa_itnim.c [SCSI] bfa: Replace bfa_assert() with bfa_sm_fault() 2010-03-07 12:54:18 +05:30
bfa_log.c [SCSI] bfa: fixed checkpatch errors for bfad files 2009-12-04 12:00:09 -06:00
bfa_log_module.c
bfa_lps.c [SCSI] bfa: Replace bfa_get_attr() with specific APIs 2010-03-07 13:07:00 +05:30
bfa_lps_priv.h
bfa_module.c [SCSI] bfa: Rename pport to fcport in BFA FCS. 2010-03-07 13:05:10 +05:30
bfa_modules_priv.h [SCSI] bfa: Rename pport to fcport in BFA FCS. 2010-03-07 13:05:10 +05:30
bfa_os_inc.h
bfa_port.c
bfa_port_priv.h [SCSI] bfa: Modified the portstats get/clear logic 2010-03-07 13:10:13 +05:30
bfa_priv.h [SCSI] bfa: Rename pport to fcport in BFA FCS. 2010-03-07 13:05:10 +05:30
bfa_rport.c [SCSI] bfa: Replace bfa_assert() with bfa_sm_fault() 2010-03-07 12:54:18 +05:30
bfa_rport_priv.h
bfa_sgpg.c
bfa_sgpg_priv.h
bfa_sm.c
bfa_timer.c
bfa_trcmod_priv.h [SCSI] bfa: Rename pport to fcport in BFA FCS. 2010-03-07 13:05:10 +05:30
bfa_tskim.c [SCSI] bfa: Replace bfa_assert() with bfa_sm_fault() 2010-03-07 12:54:18 +05:30
bfa_uf.c [SCSI] bfa: fixed checkpatch errors for bfad files 2009-12-04 12:00:09 -06:00
bfa_uf_priv.h
bfad.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
bfad_attr.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
bfad_attr.h [SCSI] bfa: Remove unused header files and did some cleanup. 2010-03-07 13:27:51 +05:30
bfad_drv.h [SCSI] bfa: Update the driver version to 2.1.2.1. 2010-03-07 13:28:38 +05:30
bfad_fwimg.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 2009-12-09 19:42:25 -08:00
bfad_im.c [SCSI] bfa: eliminate useless code 2010-04-11 09:23:32 -05:00
bfad_im.h [SCSI] bfa: Remove unused header files and did some cleanup. 2010-03-07 13:27:51 +05:30
bfad_im_compat.h [SCSI] bfa: fixed checkpatch errors for bfad files 2009-12-04 12:00:09 -06:00
bfad_intr.c [SCSI] bfa: Added separate MSI-X module parameters. 2010-03-04 15:29:46 +05:30
bfad_ipfc.h
bfad_os.c
bfad_tm.h
bfad_trcmod.h
fab.c
fabric.c [SCSI] bfa: FCS and include file changes. 2010-03-07 13:12:04 +05:30
fcbuild.c [SCSI] bfa: fixed checkpatch errors for bfad files 2009-12-04 12:00:09 -06:00
fcbuild.h [SCSI] bfa: FCS and include file changes. 2010-03-07 13:12:04 +05:30
fcpim.c [SCSI] bfa: Remove unused header files and did some cleanup. 2010-03-07 13:27:51 +05:30
fcptm.c
fcs.h [SCSI] bfa: fixed checkpatch errors for bfad files 2009-12-04 12:00:09 -06:00
fcs_auth.h
fcs_fabric.h [SCSI] bfa: FCS authentication related changes. 2010-03-07 12:58:41 +05:30
fcs_fcpim.h [SCSI] bfa: New interface to handle firmware upgrade scenario 2010-03-04 16:14:10 +05:30
fcs_fcptm.h
fcs_fcxp.h
fcs_lport.h [SCSI] bfa: Resume BFA operations after firmware mismatch is resolved. 2010-03-04 16:17:02 +05:30
fcs_ms.h
fcs_port.h [SCSI] bfa: New interface to handle firmware upgrade scenario 2010-03-04 16:14:10 +05:30
fcs_rport.h [SCSI] bfa: New interface to handle firmware upgrade scenario 2010-03-04 16:14:10 +05:30
fcs_trcmod.h
fcs_uf.h [SCSI] bfa: New interface to handle firmware upgrade scenario 2010-03-04 16:14:10 +05:30
fcs_vport.h [SCSI] bfa: Fix to allow creation of only 190 vports on CNA. 2010-03-04 16:15:24 +05:30
fdmi.c [SCSI] bfa: FCS and include file changes. 2010-03-07 13:12:04 +05:30
loop.c [SCSI] bfa: Rename pport to fcport in BFA FCS. 2010-03-07 13:05:10 +05:30
lport_api.c [SCSI] bfa: Rename pport to fcport in BFA FCS. 2010-03-07 13:05:10 +05:30
lport_priv.h
ms.c [SCSI] bfa: FCS and include file changes. 2010-03-07 13:12:04 +05:30
n2n.c
ns.c [SCSI] bfa: Rename pport to fcport in BFA FCS. 2010-03-07 13:05:10 +05:30
plog.c [SCSI] bfa: fixed checkpatch errors for bfad files 2009-12-04 12:00:09 -06:00
rport.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
rport_api.c [SCSI] bfa: Rename pport to fcport in BFA FCS. 2010-03-07 13:05:10 +05:30
rport_ftrs.c [SCSI] bfa: Replace bfa_assert() with bfa_sm_fault() 2010-03-07 12:54:18 +05:30
scn.c [SCSI] bfa: Replace bfa_assert() with bfa_sm_fault() 2010-03-07 12:54:18 +05:30
vfapi.c [SCSI] bfa: fixed checkpatch errors for bfad files 2009-12-04 12:00:09 -06:00
vport.c [SCSI] bfa: Replace bfa_get_attr() with specific APIs 2010-03-07 13:07:00 +05:30