projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9e6d02
)
[NETFILTER]: nfnetlink: remove unrequired check in nfnetlink_get_subsys
author
Pablo Neira Ayuso
<pablo@netfilter.org>
Wed, 14 Mar 2007 23:41:28 +0000
(16:41 -0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:25:49 +0000
(22:25 -0700)
subsys_table is initialized to NULL, therefore just returns NULL in case
that it is not set.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nfnetlink.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nfnetlink.c
b/net/netfilter/nfnetlink.c
index 9d33807ec16de06980362c151fb01e1f2b0c9796..0b0a9666f6f965675106d0ba063f0e7f573ee788 100644
(file)
--- 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)
{
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];