diff options
author | Hariprasad Shenai <hariprasad@chelsio.com> | 2015-03-10 13:14:52 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-10 18:42:00 +0100 |
commit | e3d50738e59af9e58f569e54ff8af1840bea906c (patch) | |
tree | 33438bbaee4663038d578dd78fbc7397b3670d64 | |
parent | net: fec: fix receive VLAN CTAG HW acceleration issue (diff) | |
download | linux-e3d50738e59af9e58f569e54ff8af1840bea906c.tar.xz linux-e3d50738e59af9e58f569e54ff8af1840bea906c.zip |
cxgb4: fix coccinelle warnings
Commit 16e47624e76b43db ("cxgb4: Add new scheme to update T4/T5 firmware")
introduced below coccinelle warning.
>> drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:994:2-8: Replace memcpy with
struct assignment
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c index 853c38997c82..1abdfa123c6c 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c +++ b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c @@ -1120,7 +1120,7 @@ int t4_prep_fw(struct adapter *adap, struct fw_info *fw_info, } /* Installed successfully, update the cached header too. */ - memcpy(card_fw, fs_fw, sizeof(*card_fw)); + *card_fw = *fs_fw; card_fw_usable = 1; *reset = 0; /* already reset as part of load_fw */ } |