>> This patch adds a trivial script warning on >> >> if(foo) >> kfree(foo) [...] > You should probably add all of the unnecessary > conditional tests that checkpatch uses: [...]
Would you like to look at my previous update suggestion "Deletion of unnecessary checks before specific function calls" again? https://systeme.lip6.fr/pipermail/cocci/2014-March/000675.html https://lkml.org/lkml/2014/3/5/344 Regards, Markus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/