diff options
Diffstat (limited to 'net/ipv4/fib_semantics.c')
| -rw-r--r-- | net/ipv4/fib_semantics.c | 8 | 
1 files changed, 2 insertions, 6 deletions
diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c index d3da6a10f86f..bfa49a88d03a 100644 --- a/net/ipv4/fib_semantics.c +++ b/net/ipv4/fib_semantics.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-or-later  /*   * INET		An implementation of the TCP/IP protocol suite for the LINUX   *		operating system.  INET is implemented using the  BSD Socket @@ -6,11 +7,6 @@   *		IPv4 Forwarding Information Base: semantics.   *   * Authors:	Alexey Kuznetsov, <[email protected]> - * - *		This program is free software; you can redistribute it and/or - *		modify it under the terms of the GNU General Public License - *		as published by the Free Software Foundation; either version - *		2 of the License, or (at your option) any later version.   */  #include <linux/uaccess.h> @@ -968,7 +964,7 @@ static int fib_check_nh_v4_gw(struct net *net, struct fib_nh *nh, u32 table,  {  	struct net_device *dev;  	struct fib_result res; -	int err; +	int err = 0;  	if (nh->fib_nh_flags & RTNH_F_ONLINK) {  		unsigned int addr_type;  |