Commit 5614fd84 authored by Christos Gkekas's avatar Christos Gkekas Committed by David S. Miller

netxen_nic: Remove unused pointer hdr in netxen_setup_minidump()

Pointer hdr in netxen_setup_minidump() is set but never used, thus
should be removed.
Signed-off-by: default avatarChristos Gkekas <chris.gekas@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4b821cb2
...@@ -174,7 +174,6 @@ netxen_setup_minidump(struct netxen_adapter *adapter) ...@@ -174,7 +174,6 @@ netxen_setup_minidump(struct netxen_adapter *adapter)
{ {
int err = 0, i; int err = 0, i;
u32 *template, *tmp_buf; u32 *template, *tmp_buf;
struct netxen_minidump_template_hdr *hdr;
err = netxen_get_minidump_template_size(adapter); err = netxen_get_minidump_template_size(adapter);
if (err) { if (err) {
adapter->mdump.fw_supports_md = 0; adapter->mdump.fw_supports_md = 0;
...@@ -218,8 +217,6 @@ netxen_setup_minidump(struct netxen_adapter *adapter) ...@@ -218,8 +217,6 @@ netxen_setup_minidump(struct netxen_adapter *adapter)
template = (u32 *) adapter->mdump.md_template; template = (u32 *) adapter->mdump.md_template;
for (i = 0; i < adapter->mdump.md_template_size/sizeof(u32); i++) for (i = 0; i < adapter->mdump.md_template_size/sizeof(u32); i++)
*template++ = __le32_to_cpu(*tmp_buf++); *template++ = __le32_to_cpu(*tmp_buf++);
hdr = (struct netxen_minidump_template_hdr *)
adapter->mdump.md_template;
adapter->mdump.md_capture_buff = NULL; adapter->mdump.md_capture_buff = NULL;
adapter->mdump.fw_supports_md = 1; adapter->mdump.fw_supports_md = 1;
adapter->mdump.md_enabled = 0; adapter->mdump.md_enabled = 0;
......
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