CAPI: use correct structure type name in sizeof
authorJulia Lawall <Julia.Lawall@lip6.fr>
Tue, 29 Jul 2014 15:16:44 +0000 (17:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Jul 2014 02:13:40 +0000 (19:13 -0700)
Correct typo in the name of the type given to sizeof.  Because it is the
size of a pointer that is wanted, the typo has no impact on compilation or
execution.

This problem was found using Coccinelle (http://coccinelle.lip6.fr/).  The
semantic patch used can be found in message 0 of this patch series.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/capi/capi.c

index f9a87ed2392b893da0feb125723d9ab53db99e0f..6a2df3297e77c92e4ca47d460ad41c9363425842 100644 (file)
@@ -1260,7 +1260,7 @@ static int __init capinc_tty_init(void)
        if (capi_ttyminors <= 0)
                capi_ttyminors = CAPINC_NR_PORTS;
 
-       capiminors = kzalloc(sizeof(struct capi_minor *) * capi_ttyminors,
+       capiminors = kzalloc(sizeof(struct capiminor *) * capi_ttyminors,
                             GFP_KERNEL);
        if (!capiminors)
                return -ENOMEM;
This page took 0.02554 seconds and 5 git commands to generate.