[PATCH 1/1] staging: gdm72xx: Remove redundant null check before kfree in gdm_wimax.c

Dan Carpenter dan.carpenter at oracle.com
Wed Nov 21 09:17:50 UTC 2012


On Wed, Nov 21, 2012 at 11:29:36AM +0530, Sachin Kamat wrote:
> kfree on a null pointer is a no-op.
> 

kdelete() used to accept NULL pointers but now it will oops.  No one
ever passes a NULL pointer, so it doesn't cause a problem.  But if
you noticed that, please put it into the changelog so we don't freak
out.

regards,
dan carpenter




More information about the devel mailing list