Skip to content

Commit

Permalink
be2net: remove unused code in be_load_fw
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ajit Khaparde authored and David S. Miller committed Mar 8, 2010
1 parent 500ca9b commit 7e8a929
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions drivers/net/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7e8a929

Please sign in to comment.