[PATCH] staging: et131x: let the freeing of memory more reasonable in error path
Dan Carpenter
dan.carpenter at oracle.com
Fri Feb 21 12:32:44 UTC 2014
Come on... :/
Don't randomly add a pointless kfree() to one error path when there are
four later error paths in this function that don't have a kfree(). It
just makes the code more difficult to understand for no reason.
And we're not going to add a comment to every single error path
either.
regards,
dan carpenter
More information about the devel
mailing list