]> git.baikalelectronics.ru Git - kernel.git/commit
qed: Replace memset with eth_zero_addr
authorShyam Saini <mayhs11saini@gmail.com>
Tue, 17 Jan 2017 02:05:04 +0000 (07:35 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jan 2017 20:24:47 +0000 (15:24 -0500)
commit833d0c2a07c3b5506288b804a4a6c9f24ff6a349
tree94ed4c4227c9ed303d720bd694d456fd1718957c
parent41d11e0fb5c4bfaf892b780b41459a9920818c2f
qed: Replace memset with eth_zero_addr

Use eth_zero_addr to assign zero address to the given address array
instead of memset when the second argument in memset is address
of zero. Also, it makes the code clearer

Signed-off-by: Shyam Saini <mayhs11saini@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_l2.c
drivers/net/ethernet/qlogic/qed/qed_sriov.c