staging: wlan-ng: convert P80211SKB_RXMETA to inline function in p80211conv
authorTim Collier <osdevtc@gmail.com>
Wed, 23 May 2018 07:30:25 +0000 (08:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 16:44:14 +0000 (18:44 +0200)
commit173ffd0993fd3e6ec7e0e24424350a807605e6d0
treea2ab4d6f427ab7b4a810ea1a2c1141993715c472
parentdf6835d1f66a27f753f93b017a5a022dbdd0d372
staging: wlan-ng: convert P80211SKB_RXMETA to inline function in p80211conv

To avoid possible issues with repeated reference to the macro argument
as reported by checkpatch, macro P80211SKB_RXMETA is replaced with an
equivalent inline function. The function is named p80211skb_rxmeta to
follow the coding style guidelines; references to the macro are
updated to reference the new function.

This change depends on the similar change for P80211SKB_FRMMETA having
been applied.

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