]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit32b1976a09eeceb5c37b48de7e64610aa18469de
tree65a6e5fde2d1bd5b8bdaf6642f64b1c47b67e3f3
parent4e372f02d8885b87e98a747d3243afbcb5bbe441
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