]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
Staging: vt6655: Fixing coding style warnings
authorSimo Koskinen <koskisoft@gmail.com>
Mon, 17 Jul 2017 12:59:05 +0000 (14:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Jul 2017 07:00:24 +0000 (09:00 +0200)
Removes following warnings found by checkpatch.pl script:

WARNING: Prefer using '"%s...", __func__' to using 'xxx',
this function's name, in a string

Signed-off-by: Simo Koskinen <koskisoft@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/card.c
drivers/staging/vt6655/mac.c

index f5db2b3d9045b85293fac3872acb00e3fa26ffbf..14034e342aa648df43a204c5b2d4eaeac7ca9ecc 100644 (file)
@@ -649,19 +649,19 @@ static unsigned short CARDwGetOFDMControlRate(struct vnt_private *priv,
        pr_debug("BASIC RATE: %X\n", priv->basic_rates);
 
        if (!CARDbIsOFDMinBasicRate((void *)priv)) {
-               pr_debug("CARDwGetOFDMControlRate:(NO OFDM) %d\n", wRateIdx);
+               pr_debug("%s:(NO OFDM) %d\n", __func__, wRateIdx);
                if (wRateIdx > RATE_24M)
                        wRateIdx = RATE_24M;
                return wRateIdx;
        }
        while (ui > RATE_11M) {
                if (priv->basic_rates & ((u32)0x1 << ui)) {
-                       pr_debug("CARDwGetOFDMControlRate : %d\n", ui);
+                       pr_debug("%s : %d\n", __func__, ui);
                        return (unsigned short)ui;
                }
                ui--;
        }
-       pr_debug("CARDwGetOFDMControlRate: 6M\n");
+       pr_debug("%s: 6M\n", __func__);
        return (unsigned short)RATE_24M;
 }
 
index 4aaa99bafcda4d96ab10733245c2dda4752df202..f7550b215f72d11d40c7129dda653945eb788cdf 100644 (file)
@@ -809,7 +809,7 @@ void MACvSetKeyEntry(struct vnt_private *priv, unsigned short wKeyCtl,
        if (byLocalID <= 1)
                return;
 
-       pr_debug("MACvSetKeyEntry\n");
+       pr_debug("%s\n", __func__);
        offset = MISCFIFO_KEYETRY0;
        offset += (uEntryIdx * MISCFIFO_KEYENTRYSIZE);