Skip to content

Commit 6f67526

Browse files
KoskiSoftgregkh
authored andcommitted
Staging: vt6655: Fixing coding style warnings
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>
1 parent e708d2c commit 6f67526

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎drivers/staging/vt6655/card.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -649,19 +649,19 @@ static unsigned short CARDwGetOFDMControlRate(struct vnt_private *priv,
649649
pr_debug("BASIC RATE: %X\n", priv->basic_rates);
650650

651651
if (!CARDbIsOFDMinBasicRate((void *)priv)) {
652-
pr_debug("CARDwGetOFDMControlRate:(NO OFDM) %d\n", wRateIdx);
652+
pr_debug("%s:(NO OFDM) %d\n", __func__, wRateIdx);
653653
if (wRateIdx > RATE_24M)
654654
wRateIdx = RATE_24M;
655655
return wRateIdx;
656656
}
657657
while (ui > RATE_11M) {
658658
if (priv->basic_rates & ((u32)0x1 << ui)) {
659-
pr_debug("CARDwGetOFDMControlRate : %d\n", ui);
659+
pr_debug("%s : %d\n", __func__, ui);
660660
return (unsigned short)ui;
661661
}
662662
ui--;
663663
}
664-
pr_debug("CARDwGetOFDMControlRate: 6M\n");
664+
pr_debug("%s: 6M\n", __func__);
665665
return (unsigned short)RATE_24M;
666666
}
667667

‎drivers/staging/vt6655/mac.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ void MACvSetKeyEntry(struct vnt_private *priv, unsigned short wKeyCtl,
809809
if (byLocalID <= 1)
810810
return;
811811

812-
pr_debug("MACvSetKeyEntry\n");
812+
pr_debug("%s\n", __func__);
813813
offset = MISCFIFO_KEYETRY0;
814814
offset += (uEntryIdx * MISCFIFO_KEYENTRYSIZE);
815815

0 commit comments

Comments
 (0)