History

CAPI: use correct structure type name in sizeof

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.

Julia Lawall committed 12 years ago

Commit 5160ee91 parent 6b1bed71 file · +1 −1Browse files

Unified · Split

drivers/isdn/capi/capi.c+1−1
@@ -1260,7 +1260,7 @@ static int __init capinc_tty_init(void) · 1259 unmodified lines
12601260 if (capi_ttyminors <= 0)
12611261 capi_ttyminors = CAPINC_NR_PORTS;
12621262
1263− capiminors = kzalloc(sizeof(struct capi_minor *) * capi_ttyminors,
1263+ capiminors = kzalloc(sizeof(struct capiminor *) * capi_ttyminors,
12641264 GFP_KERNEL);
12651265 if (!capiminors)
12661266 return -ENOMEM;