be2net: Fix a bug in preparation of mcc wrb which was causing flash operation to...
authorAjit Khaparde <ajitk@serverengines.com>
Mon, 5 Oct 2009 09:09:40 +0000 (02:09 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Oct 2009 09:09:40 +0000 (02:09 -0700)
This patch fixes a bug that got introduced in commit 76998bc7.
During preparation of mcc wrb, req was being wrongly overwritten
and the flash operation was failing.

Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_cmds.c

index 79d35d122c08c8caa066cb54d8f5f91b11de141d..89876ade5e33c93f584ea84878c72da098643955 100644 (file)
@@ -1129,7 +1129,6 @@ int be_cmd_write_flashrom(struct be_adapter *adapter, struct be_dma_mem *cmd,
        spin_lock_bh(&adapter->mcc_lock);
 
        wrb = wrb_from_mccq(adapter);
-       req = embedded_payload(wrb);
        sge = nonembedded_sgl(wrb);
 
        be_wrb_hdr_prepare(wrb, cmd->size, false, 1);