Re: [PATCH] usb: core: Do not use sizeof on pointer type
From: BjÃrn Mork
Date: Fri Apr 22 2016 - 02:58:15 EST
Vaishali Thakkar <vaishali.thakkar@xxxxxxxxxx> writes:
> When sizeof is applied to a pointer typed expression, it gives
> the size of the pointer. So, do not use sizeof on pointer type.
What if the intended result was the size of the pointer?
> Problem found using Coccinelle.
Yes, sure. But you cannot just blindly apply the result without reading
and understanding the code.
BjÃrn