staging: wlan-ng: replace WLAN_CTL_FRAMELEN with inline function in p80211hdr.h
authorTim Collier <osdevtc@gmail.com>
Fri, 22 Jun 2018 19:39:32 +0000 (20:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 13:12:50 +0000 (22:12 +0900)
commit9e5ffffb6853aafb6441193e27f60576a67a2e32
tree65a6e5fde2d1bd5b8bdaf6642f64b1c47b67e3f3
parenta37545e5e581d8b493d472f51a6011ef6f151de5
staging: wlan-ng: replace WLAN_CTL_FRAMELEN with inline function in p80211hdr.h

checkpatch reports a "CHECK" diagnostic for WLAN_CTL_FRAMELEN as the
macro reuses its argument, leading to possible side-effects. Avoid
this by replacing the macro with an equivalent function, named
wlan_ctl_framelen (as recommended in the coding style). All references
to the macro also updated accordingly.

Signed-off-by: Tim Collier <osdevtc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/p80211hdr.h