summaryrefslogtreecommitdiffstats
path: root/drivers/net/bna/bfa_ioc.c
diff options
context:
space:
mode:
authorRasesh Mody2010-10-05 17:46:05 +0200
committerDavid S. Miller2010-10-06 05:39:39 +0200
commitb7ee31c5af7f04b67d8b8e4f3b2bcb8bcfced8a3 (patch)
treea50e868a3a0d6dcc9c86ca488db91f77eaa3ab56 /drivers/net/bna/bfa_ioc.c
parentbna: fix interrupt handling (diff)
downloadkernel-qcow2-linux-b7ee31c5af7f04b67d8b8e4f3b2bcb8bcfced8a3.tar.gz
kernel-qcow2-linux-b7ee31c5af7f04b67d8b8e4f3b2bcb8bcfced8a3.tar.xz
kernel-qcow2-linux-b7ee31c5af7f04b67d8b8e4f3b2bcb8bcfced8a3.zip
bna: scope and dead code cleanup
As suggested by Stephen Hemminger: 1) Made functions and data structures static wherever possible. 2) Removed unused code. Signed-off-by: Debashis Dutt <ddutt@brocade.com> Signed-off-by: Rasesh Mody <rmody@brocade.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bna/bfa_ioc.c')
-rw-r--r--drivers/net/bna/bfa_ioc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/net/bna/bfa_ioc.c b/drivers/net/bna/bfa_ioc.c
index 73493de98de5..e94e5aa97515 100644
--- a/drivers/net/bna/bfa_ioc.c
+++ b/drivers/net/bna/bfa_ioc.c
@@ -65,7 +65,7 @@
(!list_empty(&((__ioc)->mbox_mod.cmd_q)) || \
readl((__ioc)->ioc_regs.hfn_mbox_cmd))
-bool bfa_nw_auto_recover = true;
+static bool bfa_nw_auto_recover = true;
/*
* forward declarations
@@ -1276,12 +1276,6 @@ bfa_nw_ioc_auto_recover(bool auto_recover)
bfa_nw_auto_recover = auto_recover;
}
-bool
-bfa_nw_ioc_is_operational(struct bfa_ioc *ioc)
-{
- return bfa_fsm_cmp_state(ioc, bfa_ioc_sm_op);
-}
-
static void
bfa_ioc_msgget(struct bfa_ioc *ioc, void *mbmsg)
{