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
1260 if (capi_ttyminors <= 0)1260 if (capi_ttyminors <= 0)
1261 capi_ttyminors = CAPINC_NR_PORTS;1261 capi_ttyminors = CAPINC_NR_PORTS;
1262 1262
1263 capiminors = kzalloc(sizeof(struct capi_minor *) * capi_ttyminors,1263 capiminors = kzalloc(sizeof(struct capiminor *) * capi_ttyminors,
1264 GFP_KERNEL);1264 GFP_KERNEL);
1265 if (!capiminors)1265 if (!capiminors)
1266 return -ENOMEM;1266 return -ENOMEM;