diff options
author | Ajit Khaparde <ajitkhaparde@gmail.com> | 2010-03-07 09:23:44 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-08 13:45:28 -0500 |
commit | 7e8a9298adf7531c58d73ba9c499353e3807cf19 (patch) | |
tree | 4351348c007c3df5dee242436e8f1a781c2c866f | |
parent | 500ca9ba241304937c54c379e515b24400379353 (diff) |
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>
-rw-r--r-- | drivers/net/benet/be_main.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c index 7c9b57eb780e..43e8032f9236 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) | |||
1993 | struct be_dma_mem flash_cmd; | 1993 | struct be_dma_mem flash_cmd; |
1994 | int status, i = 0; | 1994 | int status, i = 0; |
1995 | const u8 *p; | 1995 | const u8 *p; |
1996 | char fw_ver[FW_VER_LEN]; | ||
1997 | char fw_cfg; | ||
1998 | 1996 | ||
1999 | status = be_cmd_get_fw_ver(adapter, fw_ver); | ||
2000 | if (status) | ||
2001 | return status; | ||
2002 | |||
2003 | fw_cfg = *(fw_ver + 2); | ||
2004 | if (fw_cfg == '0') | ||
2005 | fw_cfg = '1'; | ||
2006 | strcpy(fw_file, func); | 1997 | strcpy(fw_file, func); |
2007 | 1998 | ||
2008 | status = request_firmware(&fw, fw_file, &adapter->pdev->dev); | 1999 | status = request_firmware(&fw, fw_file, &adapter->pdev->dev); |