drivers/usb/core/pwrseq.c:52:23-29: ERROR: application of sizeof to pointer sizeof when applied to a pointer typed expression gives the size of the pointer Generated by: scripts/coccinelle/misc/noderef.cocci Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx> --- pwrseq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/usb/core/pwrseq.c +++ b/drivers/usb/core/pwrseq.c @@ -49,7 +49,7 @@ static int hub_of_pwrseq_on(struct devic if (ret) goto pwr_put; - pwrseq_node = kzalloc(sizeof(pwrseq_node), GFP_KERNEL); + pwrseq_node = kzalloc(sizeof(*pwrseq_node), GFP_KERNEL); pwrseq_node->pwrseq = pwrseq; list_add(&pwrseq_node->list, &hub->pwrseq_on_list); -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html