[PATCH] remove unrequired checking in nfnetlink_get_subsys subsys_table is initialized to NULL, therefore just returns NULL in case that it is not set. Signed-off-by: Pablo Neira Ayuso Index: net-2.6.git/net/netfilter/nfnetlink.c =================================================================== --- net-2.6.git.orig/net/netfilter/nfnetlink.c 2006-12-26 04:34:18.000000000 +0100 +++ net-2.6.git/net/netfilter/nfnetlink.c 2006-12-26 04:37:59.000000000 +0100 @@ -72,8 +72,7 @@ static inline struct nfnetlink_subsystem { u_int8_t subsys_id = NFNL_SUBSYS_ID(type); - if (subsys_id >= NFNL_SUBSYS_COUNT - || subsys_table[subsys_id] == NULL) + if (subsys_id >= NFNL_SUBSYS_COUNT) return NULL; return subsys_table[subsys_id];