summaryrefslogtreecommitdiffstats
path: root/drivers/isdn/pcbit
diff options
context:
space:
mode:
authorJulia Lawall <julia.lawall@lip6.fr>2014-12-07 20:20:47 +0100
committerDavid S. Miller <davem@davemloft.net>2014-12-09 22:18:46 +0100
commiteeb4e6d16672cf6ad1cc4c331a363560afe0d23a (patch)
treeee600b8cb6ec626de103387ab43e95b20f9e0f88 /drivers/isdn/pcbit
parentdmfe: fix misspelling of current function in string (diff)
downloadlinux-eeb4e6d16672cf6ad1cc4c331a363560afe0d23a.tar.xz
linux-eeb4e6d16672cf6ad1cc4c331a363560afe0d23a.zip
isdn: fix misspelling of current function in string
Replace a misspelled function name by %s and then __func__. In the first case, the print is just dropped, because kmalloc itself does enough error reporting. This was done using Coccinelle, including the use of Levenshtein distance, as proposed by Rasmus Villemoes. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/pcbit')
-rw-r--r--drivers/isdn/pcbit/layer2.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/isdn/pcbit/layer2.c b/drivers/isdn/pcbit/layer2.c
index 42ecfef80132..46e1240ae074 100644
--- a/drivers/isdn/pcbit/layer2.c
+++ b/drivers/isdn/pcbit/layer2.c
@@ -85,7 +85,6 @@ pcbit_l2_write(struct pcbit_dev *dev, ulong msg, ushort refnum,
}
if ((frame = kmalloc(sizeof(struct frame_buf),
GFP_ATOMIC)) == NULL) {
- printk(KERN_WARNING "pcbit_2_write: kmalloc failed\n");
dev_kfree_skb(skb);
return -1;
}