]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
mac80211_hwsim: use reset to set mac header
authorZhang Shengju <zhangshengju@cmss.chinamobile.com>
Thu, 3 Mar 2016 01:16:55 +0000 (01:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 5 Mar 2016 03:45:13 +0000 (22:45 -0500)
commit6b163a85478b27748bad219fe3ead7ac87217265
tree4eaad482967490a5733d17f25fa49a005563dfc2
parent6297b91c7fb530d3f2543a8e25d68ccf75bfb139
mac80211_hwsim: use reset to set mac header

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>
drivers/net/wireless/mac80211_hwsim.c