Commit 63722966 authored by David S. Miller's avatar David S. Miller

be2net: Kill set but unused variable 'req' in lancer_fw_download()

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fa7479cf
...@@ -2736,7 +2736,6 @@ static int lancer_fw_download(struct be_adapter *adapter, ...@@ -2736,7 +2736,6 @@ static int lancer_fw_download(struct be_adapter *adapter,
#define LANCER_FW_DOWNLOAD_CHUNK (32 * 1024) #define LANCER_FW_DOWNLOAD_CHUNK (32 * 1024)
#define LANCER_FW_DOWNLOAD_LOCATION "/prg" #define LANCER_FW_DOWNLOAD_LOCATION "/prg"
struct be_dma_mem flash_cmd; struct be_dma_mem flash_cmd;
struct lancer_cmd_req_write_object *req;
const u8 *data_ptr = NULL; const u8 *data_ptr = NULL;
u8 *dest_image_ptr = NULL; u8 *dest_image_ptr = NULL;
size_t image_size = 0; size_t image_size = 0;
...@@ -2765,7 +2764,6 @@ static int lancer_fw_download(struct be_adapter *adapter, ...@@ -2765,7 +2764,6 @@ static int lancer_fw_download(struct be_adapter *adapter,
goto lancer_fw_exit; goto lancer_fw_exit;
} }
req = flash_cmd.va;
dest_image_ptr = flash_cmd.va + dest_image_ptr = flash_cmd.va +
sizeof(struct lancer_cmd_req_write_object); sizeof(struct lancer_cmd_req_write_object);
image_size = fw->size; image_size = fw->size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment