It's more succinct than checking whether CONFIG_BLAH or CONFIG_BLAH_MODULE are defined. Signed-off-by: Jeremy Sowden <jeremy@xxxxxxxxxx> --- extensions/pknock/xt_pknock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/pknock/xt_pknock.c b/extensions/pknock/xt_pknock.c index a9df420cc75e..ba8161517d27 100644 --- a/extensions/pknock/xt_pknock.c +++ b/extensions/pknock/xt_pknock.c @@ -677,7 +677,7 @@ static bool msg_to_userspace_nl(const struct xt_pknock_mtinfo *info, const struct peer *peer, int multicast_group) { -#if defined(CONFIG_CONNECTOR) || defined(CONFIG_CONNECTOR_MODULE) +#if IS_ENABLED(CONFIG_CONNECTOR) struct cn_msg *m; struct xt_pknock_nl_msg msg; @@ -1101,7 +1101,7 @@ static struct xt_match xt_pknock_mt_reg __read_mostly = { static int __init xt_pknock_mt_init(void) { -#if !defined(CONFIG_CONNECTOR) && !defined(CONFIG_CONNECTOR_MODULE) +#if !IS_ENABLED(CONFIG_CONNECTOR) if (nl_multicast_group != -1) pr_info("CONFIG_CONNECTOR not present; " "netlink messages disabled\n"); -- 2.28.0