diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2011-01-03 06:08:58 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-03 16:29:18 -0500 |
commit | 1a9180a20f3a314fda3e96b77570cad3864b2896 (patch) | |
tree | 4b8c4f605e283902f03f5ab1113903793823d1b5 /net/bridge/netfilter | |
parent | ebd80880c55364d2850e1ff569869245142318e0 (diff) |
net/bridge: fix trivial sparse errors
net/bridge//br_stp_if.c:148:66: warning: conversion of
net/bridge//br_stp_if.c:148:66: int to
net/bridge//br_stp_if.c:148:66: int enum umh_wait
net/bridge//netfilter/ebtables.c:1150:30: warning: Using plain integer as NULL pointer
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/netfilter')
-rw-r--r-- | net/bridge/netfilter/ebtables.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c index cbc9f395ab1..16df0532d4b 100644 --- a/net/bridge/netfilter/ebtables.c +++ b/net/bridge/netfilter/ebtables.c | |||
@@ -1147,7 +1147,7 @@ ebt_register_table(struct net *net, const struct ebt_table *input_table) | |||
1147 | void *p; | 1147 | void *p; |
1148 | 1148 | ||
1149 | if (input_table == NULL || (repl = input_table->table) == NULL || | 1149 | if (input_table == NULL || (repl = input_table->table) == NULL || |
1150 | repl->entries == 0 || repl->entries_size == 0 || | 1150 | repl->entries == NULL || repl->entries_size == 0 || |
1151 | repl->counters != NULL || input_table->private != NULL) { | 1151 | repl->counters != NULL || input_table->private != NULL) { |
1152 | BUGPRINT("Bad table data for ebt_register_table!!!\n"); | 1152 | BUGPRINT("Bad table data for ebt_register_table!!!\n"); |
1153 | return ERR_PTR(-EINVAL); | 1153 | return ERR_PTR(-EINVAL); |