Since kfree() already checks if its argument is NULL, an additional check before calling kfree() is unnecessary and can be removed. Remove it and thus also the following Coccinelle/coccicheck warning reported by ifnullfree.cocci: WARNING: NULL check before some freeing functions is not needed
Would you mind initiating a PR to solve this? I have no idea which file contains this question. I would mark this as Invalid, after you point the accurate code out or push PR, you can reopen it.