aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/benet
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-05-19 18:49:54 -0400
committerDavid S. Miller <davem@davemloft.net>2011-05-19 18:49:54 -0400
commit63722966d703aeb8071d52172de87e377006cd28 (patch)
tree01ee020eefdfdca933046783ead5af72c8ed10ec /drivers/net/benet
parentfa7479cf48103ee9261398034528495966bd7d2d (diff)
be2net: Kill set but unused variable 'req' in lancer_fw_download()
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet')
-rw-r--r--drivers/net/benet/be_main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c
index ce6edac007a7..4b5e0ed49ed8 100644
--- a/drivers/net/benet/be_main.c
+++ b/drivers/net/benet/be_main.c
@@ -2736,7 +2736,6 @@ static int lancer_fw_download(struct be_adapter *adapter,
2736#define LANCER_FW_DOWNLOAD_CHUNK (32 * 1024) 2736#define LANCER_FW_DOWNLOAD_CHUNK (32 * 1024)
2737#define LANCER_FW_DOWNLOAD_LOCATION "/prg" 2737#define LANCER_FW_DOWNLOAD_LOCATION "/prg"
2738 struct be_dma_mem flash_cmd; 2738 struct be_dma_mem flash_cmd;
2739 struct lancer_cmd_req_write_object *req;
2740 const u8 *data_ptr = NULL; 2739 const u8 *data_ptr = NULL;
2741 u8 *dest_image_ptr = NULL; 2740 u8 *dest_image_ptr = NULL;
2742 size_t image_size = 0; 2741 size_t image_size = 0;
@@ -2765,7 +2764,6 @@ static int lancer_fw_download(struct be_adapter *adapter,
2765 goto lancer_fw_exit; 2764 goto lancer_fw_exit;
2766 } 2765 }
2767 2766
2768 req = flash_cmd.va;
2769 dest_image_ptr = flash_cmd.va + 2767 dest_image_ptr = flash_cmd.va +
2770 sizeof(struct lancer_cmd_req_write_object); 2768 sizeof(struct lancer_cmd_req_write_object);
2771 image_size = fw->size; 2769 image_size = fw->size;