No, I have to collapse the if and assign lines in order to take
advantage of the compiler when CONFIG_SERIAL=n. Then anything within
the if {} will just be compiled away if the return value of a static
inline function is 0.
As for using a macro, that doesn't really have any advantages over the
existing different functions.
thanks,
greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/