diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/nfnetlink.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/netfilter/nfnetlink.c b/net/netfilter/nfnetlink.c index 9d33807ec16d..0b0a9666f6f9 100644 --- a/net/netfilter/nfnetlink.c +++ b/net/netfilter/nfnetlink.c | |||
@@ -94,8 +94,7 @@ static inline struct nfnetlink_subsystem *nfnetlink_get_subsys(u_int16_t type) | |||
94 | { | 94 | { |
95 | u_int8_t subsys_id = NFNL_SUBSYS_ID(type); | 95 | u_int8_t subsys_id = NFNL_SUBSYS_ID(type); |
96 | 96 | ||
97 | if (subsys_id >= NFNL_SUBSYS_COUNT | 97 | if (subsys_id >= NFNL_SUBSYS_COUNT) |
98 | || subsys_table[subsys_id] == NULL) | ||
99 | return NULL; | 98 | return NULL; |
100 | 99 | ||
101 | return subsys_table[subsys_id]; | 100 | return subsys_table[subsys_id]; |