]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnx2x: use reset to set network header
authorZhang Shengju <zhangshengju@cmss.chinamobile.com>
Fri, 2 Dec 2016 01:51:04 +0000 (09:51 +0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 27 Feb 2017 02:03:29 +0000 (18:03 -0800)
commit8e33829cbf71b07d990dab82573d486028dc2cda
treef6ec32c7f6c9909d786114c47e8fcdea84e36d16
parent6c5c3a3757dd70c03997a834792f99a0ee854f39
bnx2x: use reset to set network header

Orabug: 25477835

Since offset is zero, it's not necessary to use set function. Reset
function is straightforward, and will remove the unnecessary add
operation in set function.

Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 0e24c0ad2b95f971c7af039080e7bd0a34b8b0dc)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c