summaryrefslogtreecommitdiffstats
path: root/drivers/net/benet
diff options
context:
space:
mode:
authorAjit Khaparde <ajitkhaparde@gmail.com>2010-03-07 14:23:44 +0000
committerDavid S. Miller <davem@davemloft.net>2010-03-08 10:45:28 -0800
commit7e8a9298adf7531c58d73ba9c499353e3807cf19 (patch)
tree4351348c007c3df5dee242436e8f1a781c2c866f /drivers/net/benet
parent500ca9ba241304937c54c379e515b24400379353 (diff)
downloadop-kernel-dev-7e8a9298adf7531c58d73ba9c499353e3807cf19.zip
op-kernel-dev-7e8a9298adf7531c58d73ba9c499353e3807cf19.tar.gz
be2net: remove unused code in be_load_fw
This patch cleans up some unused code from be_load_fw(). Signed-off-by: Ajit Khaparde <ajitk@serverengines.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet')
-rw-r--r--drivers/net/benet/be_main.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c
index 7c9b57e..43e8032 100644
--- a/drivers/net/benet/be_main.c
+++ b/drivers/net/benet/be_main.c
@@ -1993,16 +1993,7 @@ int be_load_fw(struct be_adapter *adapter, u8 *func)
struct be_dma_mem flash_cmd;
int status, i = 0;
const u8 *p;
- char fw_ver[FW_VER_LEN];
- char fw_cfg;
- status = be_cmd_get_fw_ver(adapter, fw_ver);
- if (status)
- return status;
-
- fw_cfg = *(fw_ver + 2);
- if (fw_cfg == '0')
- fw_cfg = '1';
strcpy(fw_file, func);
status = request_firmware(&fw, fw_file, &adapter->pdev->dev);
OpenPOWER on IntegriCloud