staging: vt6656: camel case and cleanup CARDbyGetPktType
authorMalcolm Priestley <tvboxspy@gmail.com>
Sat, 24 May 2014 13:36:59 +0000 (14:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 May 2014 17:58:24 +0000 (10:58 -0700)
camel case changes
pDevice -> priv

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/card.c

index 5a357c5ab27c30bf87ae0c425a447855e866a5f3..e39bdd59dfd62e718bebf54a075b716b6bf58d6f 100644 (file)
@@ -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;
 }
 
 /*