don't do pointless NULL checks and casts before kfree() in security/
Quoted 7 lines · Ralph Corderoy
Hi Jesper,
Quoted 2 lines
kfree()handles NULL pointers, so checking a pointer for NULL before callingkfree()on it is pointless.Not necessarily. It helps tell the reader that the pointer may be NULL at that point. This has come up before.
If you want to comment code, use comments.