From: Malcolm Priestley Date: Sat, 24 May 2014 13:36:59 +0000 (+0100) Subject: staging: vt6656: camel case and cleanup CARDbyGetPktType X-Git-Tag: next-20140530~19^2~274 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1f44238f6c040694f4bf5226db72c34e90c97e26;p=karo-tx-linux.git staging: vt6656: camel case and cleanup CARDbyGetPktType camel case changes 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 5a357c5ab27c..e39bdd59dfd6 100644 --- a/drivers/staging/vt6656/card.c +++ b/drivers/staging/vt6656/card.c @@ -534,18 +534,15 @@ int CARDbIsOFDMinBasicRate(struct vnt_private *priv) return false; } -u8 CARDbyGetPktType(struct vnt_private *pDevice) +u8 CARDbyGetPktType(struct vnt_private *priv) { - if (pDevice->byBBType == BB_TYPE_11A || pDevice->byBBType == BB_TYPE_11B) { - return (u8)pDevice->byBBType; - } - else if (CARDbIsOFDMinBasicRate(pDevice)) { - return PK_TYPE_11GA; - } - else { - return PK_TYPE_11GB; - } + if (priv->byBBType == BB_TYPE_11A || priv->byBBType == BB_TYPE_11B) + return (u8)priv->byBBType; + else if (CARDbIsOFDMinBasicRate(priv)) + return PK_TYPE_11GA; + else + return PK_TYPE_11GB; } /*