Skip to content

Commit 3dbef99

Browse files
JuliaLawallgregkh
authored andcommitted
uwb/whci: 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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent cd83ce9 commit 3dbef99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/uwb/whci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ static int whci_probe(struct pci_dev *pci, const struct pci_device_id *id)
175175

176176
err = -ENOMEM;
177177
card = kzalloc(sizeof(struct whci_card)
178-
+ sizeof(struct whci_dev *) * (n_caps + 1),
178+
+ sizeof(struct umc_dev *) * (n_caps + 1),
179179
GFP_KERNEL);
180180
if (card == NULL)
181181
goto error_kzalloc;

0 commit comments

Comments
 (0)