OSDN Git Service

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)
commitb2679009fa7def0772bff1af4b7579dc2d8ff442
treeea5493b3ffd9266eb7c9ca0d5ee9b6a5ed13bf21
parent9e5ffffb6853aafb6441193e27f60576a67a2e32
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