Re: [PATCH] checkpatch: Test for kmalloc/memset(0) pairs

From: Alexey Dobriyan
Date: Sun Mar 20 2011 - 07:09:44 EST


Can we tell "0" token from "sizeof(struct {})" in C compiler?

This would solve memset(,0); issue quite nicely.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/