On Fri, 2015-11-13 at 11:22 -0500, Steven Rostedt wrote: > This sure could use a comment. > > on = 0, off = 0, -1 + (0^0) * (1 + 0) = -1 > on = 0, off = 1, -1 + (0^1) * (1 + 0) = 0 > on = 1, off = 0, -1 + (1^0) * (1 + 1) = 1 > on = 1, off = 1, -1 + (1^1) * (1 + 1) = -1 > > The I would also state: > > -1 means to simply use if logic (no jump labels/static keys) > 0 means to use jump label to off > 1 means to use jump label to on Yeah, fair enough :) FWIW, I changed my mind and redid all of this without the jump labels, just actually eliding the code completely if possible. I've put it in the hwflags-elide branch in my mac80211-next tree: https://git.kernel.org/cgit/linux/kernel/git/jberg/mac80211-next.git/log/?h=hwflags-elide johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html