diff options
Diffstat (limited to 'net/decnet/dn_table.c')
-rw-r--r-- | net/decnet/dn_table.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/net/decnet/dn_table.c b/net/decnet/dn_table.c index eeba56f99323..6f8b5658cb4e 100644 --- a/net/decnet/dn_table.c +++ b/net/decnet/dn_table.c | |||
@@ -784,16 +784,14 @@ struct dn_fib_table *dn_fib_get_table(int n, int create) | |||
784 | 784 | ||
785 | static void dn_fib_del_tree(int n) | 785 | static void dn_fib_del_tree(int n) |
786 | { | 786 | { |
787 | struct dn_fib_table *t; | 787 | struct dn_fib_table *t; |
788 | 788 | ||
789 | write_lock(&dn_fib_tables_lock); | 789 | write_lock(&dn_fib_tables_lock); |
790 | t = dn_fib_tables[n]; | 790 | t = dn_fib_tables[n]; |
791 | dn_fib_tables[n] = NULL; | 791 | dn_fib_tables[n] = NULL; |
792 | write_unlock(&dn_fib_tables_lock); | 792 | write_unlock(&dn_fib_tables_lock); |
793 | 793 | ||
794 | if (t) { | 794 | kfree(t); |
795 | kfree(t); | ||
796 | } | ||
797 | } | 795 | } |
798 | 796 | ||
799 | struct dn_fib_table *dn_fib_empty_table(void) | 797 | struct dn_fib_table *dn_fib_empty_table(void) |