> And more generally, can we extend these if-else's to a generic loop to > check a table like in match_field() so that it can be added easily?
The simple cases are all already handled in a table above. The if() only contains cases that need special code. I don't think callbacks would be better here. -Andi -- 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/