From: Malcolm Priestley Date: Sat, 24 May 2014 13:36:58 +0000 (+0100) Subject: staging: vt6656: camel case clean up CARDbIsOFDMinBasicRate X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=de0eb9ef70fb0ed92510b2cebb2a7249d68ad2eb;p=openwrt%2Fstaging%2Fblogic.git staging: vt6656: camel case clean up CARDbIsOFDMinBasicRate camel case change pDevice -> priv Signed-off-by: Malcolm Priestley Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6656/card.c b/drivers/staging/vt6656/card.c index 439e536fbeee..5a357c5ab27c 100644 --- a/drivers/staging/vt6656/card.c +++ b/drivers/staging/vt6656/card.c @@ -522,15 +522,16 @@ void CARDbAddBasicRate(struct vnt_private *priv, u16 rate_idx) CARDvUpdateBasicTopRate(priv); } -int CARDbIsOFDMinBasicRate(struct vnt_private *pDevice) +int CARDbIsOFDMinBasicRate(struct vnt_private *priv) { int ii; - for (ii = RATE_54M; ii >= RATE_6M; ii --) { - if ((pDevice->wBasicRate) & ((u16)(1<= RATE_6M; ii--) { + if ((priv->wBasicRate) & ((u16)(1 << ii))) + return true; + } + + return false; } u8 CARDbyGetPktType(struct vnt_private *pDevice)