]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wlan-ng: replace macro with inline function in prism2mgmt.c
authorTim Collier <osdevtc@gmail.com>
Fri, 22 Jun 2018 19:39:33 +0000 (20:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 13:12:50 +0000 (22:12 +0900)
commitb96f901673c0f038ebb6f82ede8b45b744d118ee
treeea5493b3ffd9266eb7c9ca0d5ee9b6a5ed13bf21
parent32b1976a09eeceb5c37b48de7e64610aa18469de
staging: wlan-ng: replace macro with inline function in prism2mgmt.c

checkpatch gives the following message for the p80211rate_to_p2bit
macro:

CHECK: Macro argument reuse 'n' - possible side-effects?

To fix the message, replace the macro with an equivalent inline
function.

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