Skip to content

Commit

Permalink
cxgb4: use eth_zero_addr() to clear mac address
Browse files Browse the repository at this point in the history
Use eth_zero_addr() to clear mac address insetad of memset().

Signed-off-by: Miaohe Lin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
MiaoheLin authored and davem330 committed Jul 23, 2020
1 parent a3c8c7f commit 8bf9d8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/chelsio/cxgb4/smt.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ struct smt_data *t4_init_smt(void)
for (i = 0; i < s->smt_size; ++i) {
s->smtab[i].idx = i;
s->smtab[i].state = SMT_STATE_UNUSED;
memset(&s->smtab[i].src_mac, 0, ETH_ALEN);
eth_zero_addr(s->smtab[i].src_mac);
spin_lock_init(&s->smtab[i].lock);
s->smtab[i].refcnt = 0;
}
Expand Down

0 comments on commit 8bf9d8e

Please sign in to comment.