Skip to content

Commit 9f0b4cb

Browse files
JuliaLawalllinvjw
authored andcommitted
iwlegacy: 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. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent 8500d79 commit 9f0b4cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/wireless/iwlegacy/common.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2980,7 +2980,8 @@ il_tx_queue_alloc(struct il_priv *il, struct il_tx_queue *txq, u32 id)
29802980
/* Driver ilate data, only for Tx (not command) queues,
29812981
* not shared with device. */
29822982
if (id != il->cmd_queue) {
2983-
txq->skbs = kcalloc(TFD_QUEUE_SIZE_MAX, sizeof(struct skb *),
2983+
txq->skbs = kcalloc(TFD_QUEUE_SIZE_MAX,
2984+
sizeof(struct sk_buff *),
29842985
GFP_KERNEL);
29852986
if (!txq->skbs) {
29862987
IL_ERR("Fail to alloc skbs\n");

0 commit comments

Comments
 (0)